This repository has been archived by the owner on Jan 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] clouder_template_red_october: Review fixes
* Remove data and source from base * Proxy compat * Roadmap notes * Switch user to red october * Bugfixes
- Loading branch information
Showing
16 changed files
with
55 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2016 LasLabs Inc. | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
162 changes: 0 additions & 162 deletions
162
clouder_template_red_october/data/certificate_policy_use.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
FROM clouder/base:3.4 | ||
MAINTAINER Dave Lasley <[email protected]> | ||
|
||
|
||
RUN groupadd -r redoctober --gid=999 && useradd -r -g redoctober --uid=999 redoctober | ||
|
||
# Install Build Dependencies | ||
|
@@ -17,21 +16,18 @@ ENV buildDeps "build-base \ | |
RUN apk add --no-cache $buildDeps | ||
|
||
# Install Red October | ||
|
||
RUN git clone --depth=1 https://github.com/cloudflare/redoctober.git /go/src/github.com/cloudflare/redoctober | ||
|
||
RUN go install github.com/cloudflare/redoctober | ||
|
||
EXPOSE 8080 8081 | ||
ENV RO_CERTS=/var/lib/redoctober/data/server.crt \ | ||
RO_KEYS=/var/lib/redoctober/data/server.pem \ | ||
RO_DATA=/var/lib/redoctober/data \ | ||
RO_CERTPASSWD=password \ | ||
RO_COMMONNAME=localhost | ||
# Setup Environment | ||
ENV RO_DATA=/var/lib/redoctober/data \ | ||
RO_CERTS=$RO_DATA/server.crt \ | ||
RO_KEYS=$RO_DATA/server.pem | ||
|
||
ENTRYPOINT ["/go/src/github.com/cloudflare/redoctober/scripts/docker-entrypoint.sh"] | ||
|
||
CMD ["redoctober", \ | ||
"-addr=:8080", \ | ||
"-vaultpath=/var/lib/redoctober/data/diskrecord.json", \ | ||
"-certs=/var/lib/redoctober/data/server.crt", \ | ||
"-keys=/var/lib/redoctober/data/server.pem"] | ||
"-vaultpath=$RO_DATA/diskrecord.json", \ | ||
"-certs=$RO_CERTS", \ | ||
"-keys=$RO_KEYS"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2016 LasLabs Inc. | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). | ||
|
||
from . import container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2016 LasLabs Inc. | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). | ||
|
||
from odoo import api, models | ||
|
||
|
||
class ClouderContainer(models.Model): | ||
_inherit = 'clouder.container' | ||
|
||
@api.multi | ||
def deploy_post(self): | ||
super(ClouderContainer, self).deploy_post() | ||
for record in self: | ||
if record.application_id.type_id.name == 'redoctober': | ||
if record.application_id.code == 'data': | ||
# @TODO: Create a CSR, sign it with the CA, execute echo | ||
pass |