forked from ecamp/ecamp3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish print service images to Docker Hub
- Loading branch information
1 parent
8f7744e
commit 8bff473
Showing
18 changed files
with
160 additions
and
77 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM node:12.18 | ||
WORKDIR /app | ||
COPY print/package*.json ./ | ||
RUN npm install | ||
COPY print . | ||
RUN npm run build | ||
EXPOSE 80 | ||
CMD npm run start |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM buildkite/puppeteer | ||
WORKDIR /app | ||
COPY workers/print-puppeteer/package*.json ./ | ||
RUN npm install | ||
COPY workers/print-puppeteer . | ||
CMD npm run print |
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,21 @@ | ||
FROM python:3.8 | ||
|
||
# install all the dependencies except libcairo2 from jessie, then install libcairo2 from stretch | ||
RUN apt-get -y update \ | ||
&& apt-get install -y \ | ||
fonts-font-awesome \ | ||
libffi-dev \ | ||
libgdk-pixbuf2.0-0 \ | ||
libpango1.0-0 \ | ||
python-dev \ | ||
python-lxml \ | ||
shared-mime-info \ | ||
libcairo2 | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install WeasyPrint pika requests | ||
|
||
COPY workers/print-weasy . | ||
|
||
CMD python -u print.py |
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,7 @@ | ||
<?php | ||
|
||
return [ | ||
'session_config' => [ | ||
'cookie_domain' => '', | ||
], | ||
]; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
INTERNAL_API_ROOT_URL=http://backend/api | ||
API_ROOT_URL=http://localhost:3001/api |
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,6 @@ | ||
FROM buildkite/puppeteer | ||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
CMD npm run print |
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,9 @@ | ||
module.exports = { | ||
PRINT_SERVER: process.env.PRINT_SERVER || "http://print", | ||
SESSION_COOKIE_DOMAIN: process.env.SESSION_COOKIE_DOMAIN || "backend", | ||
AMQP_HOST: process.env.AMQP_HOST || 'rabbitmq', | ||
AMQP_PORT: process.env.AMQP_PORT || '5672', | ||
AMQP_VHOST: process.env.AMQP_VHOST || '/', | ||
AMQP_USER: process.env.AMQP_USER || 'guest', | ||
AMQP_PASS: process.env.AMQP_PASS || 'guest', | ||
}; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
__pycache__ |
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,8 @@ | ||
import os | ||
|
||
PRINT_SERVER = os.getenv('PRINT_SERVER', 'http://print/') | ||
AMQP_HOST = os.getenv('AMQP_HOST', 'rabbitmq') | ||
AMQP_PORT = os.getenv('AMQP_PORT', '5672') | ||
AMQP_VHOST = os.getenv('AMQP_VHOST', '/') | ||
AMQP_USER = os.getenv('AMQP_USER', 'guest') | ||
AMQP_PASS = os.getenv('AMQP_PASS', 'guest') |
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