-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stanislas Girard
committed
Jan 8, 2021
1 parent
1d2bb54
commit bfa093d
Showing
18 changed files
with
129 additions
and
295 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
ARG REDIS_VERSION=${REDIS_VERSION:-"6"} | ||
|
||
FROM redis:${REDIS_VERSION}-alpine | ||
MAINTAINER Luc Michalski <[email protected]> | ||
|
||
|
||
ARG REDIS_LOG_PREFIX_PATH=${REDIS_LOG_PREFIX_PATH:-"/var/log/redis"} | ||
|
||
|
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 @@ | ||
ARG TRAEFIK_VERSION=${TRAEFIK_VERSION:-"v2.3.4"} | ||
|
||
FROM traefik:${TRAEFIK_VERSION} | ||
MAINTAINER Michalski Luc <[email protected]> | ||
|
||
ARG TRAEFIK_LOG_PREFIX_PATH=${TRAEFIK_LOG_PREFIX_PATH:-"/var/log/traefik"} | ||
|
||
|
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,6 @@ | ||
# Seoz | ||
# Osat | ||
|
||
|
||
docker exec -it osat-server python manage.py createsuperuser | ||
|
||
|
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,13 +1,13 @@ | ||
:80 | ||
|
||
root * /opt/seoz/www | ||
root * /opt/osat/www | ||
file_server | ||
|
||
header Access-Control-Allow-Origin * | ||
header Access-Control-Allow-Headers * | ||
header Access-Control-Allow-Methods * | ||
|
||
log { | ||
output file /opt/seoz/logs/access.log | ||
output file /opt/osat/logs/access.log | ||
format single_field common_log | ||
} |
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 @@ | ||
ARG NODE_VERSION=${NODE_VERSION:-"14"} | ||
|
||
FROM mhart/alpine-node:${NODE_VERSION} AS front-builder | ||
MAINTAINER Michalski Luc <[email protected]> | ||
|
||
# Import project's dependencies | ||
WORKDIR /app | ||
|
@@ -16,7 +15,6 @@ COPY . . | |
RUN yarn build | ||
|
||
FROM caddy:2.3.0-rc.1-builder-alpine AS caddy-builder | ||
MAINTAINER Michalski Luc <[email protected]> | ||
|
||
ARG CADDY_VERSION=${CADDY_VERSION:-"v2.3.0-rc.1"} | ||
ARG CADDY_PLUGINS=${CADDY_PLUGINS:-"cors,realip,expires,cache,gzip"} | ||
|
@@ -32,7 +30,6 @@ RUN echo "VERSION=${CADDY_VERSION} PLUGINS=${CADDY_PLUGINS}" && \ | |
VERSION=${CADDY_VERSION} PLUGINS=${CADDY_PLUGINS} ENABLE_TELEMETRY=false /bin/sh /usr/bin/caddy-builder | ||
|
||
FROM alpine:3.12 AS runtime | ||
MAINTAINER Michalski Luc <[email protected]> | ||
|
||
# Set build arguments | ||
ARG VERSION | ||
|
@@ -41,15 +38,15 @@ ARG NOW | |
|
||
# Install runtime dependencies & create runtime user | ||
RUN apk --no-cache --no-progress add ca-certificates openssl bash nano \ | ||
&& adduser -D seoz -h /opt/seoz -s /bin/sh \ | ||
&& su seoz -c 'cd /opt/seoz; mkdir -p www logs' | ||
&& adduser -D osat -h /opt/osat -s /bin/sh \ | ||
&& su osat -c 'cd /opt/osat; mkdir -p www logs' | ||
|
||
# Switch to user context | ||
USER seoz | ||
WORKDIR /opt/seoz | ||
USER osat | ||
WORKDIR /opt/osat | ||
|
||
# Copy the virtual environment from the previous image | ||
COPY --from=front-builder /app/build /opt/seoz/www | ||
COPY --from=front-builder /app/build /opt/osat/www | ||
|
||
# Install caddy | ||
COPY --from=caddy-builder /usr/bin/caddy /usr/bin/caddy | ||
|
@@ -59,21 +56,20 @@ COPY --from=caddy-builder /go/bin/parent /bin/parent | |
|
||
# Container configuration | ||
EXPOSE 3000 80 443 2015 | ||
VOLUME /opt/seoz/www | ||
VOLUME /opt/osat/www | ||
|
||
# Set container labels | ||
LABEL name="seoz-admin" \ | ||
LABEL name="osat-admin" \ | ||
version="$VERSION" \ | ||
build="$BUILD" \ | ||
architecture="x86_64" \ | ||
build_date="$NOW" \ | ||
vendor="seoz" \ | ||
maintainer="Luc Michalski <[email protected]>" \ | ||
url="https://github.com/seoz.io/seoz-docker" \ | ||
vendor="osat" \ | ||
url="https://github.com/osat.io/osat-docker" \ | ||
summary="SeoZ project with Docker" \ | ||
description="SeoZ project with Docker" \ | ||
vcs-type="git" \ | ||
vcs-url="https://github.com/seoz.io/seoz-docker" \ | ||
vcs-url="https://github.com/osat.io/osat-docker" \ | ||
vcs-ref="$VERSION" \ | ||
distribution-scope="public" | ||
|
||
|
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 @@ | ||
ARG NODE_VERSION=${NODE_VERSION:-"14"} | ||
|
||
FROM mhart/alpine-node:${NODE_VERSION} | ||
MAINTAINER Michalski Luc <[email protected]> | ||
|
||
# Import project's dependencies | ||
WORKDIR /app | ||
|
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,5 +1,5 @@ | ||
# General | ||
NAMESPACE="seoz" | ||
NAMESPACE="osat" | ||
|
||
# Tini | ||
TINI_VERSION="v0.19.0" | ||
|
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 @@ | ||
ARG PYTHON_VERSION=${PYTHON_VERSION:-"3"} | ||
|
||
FROM python:${PYTHON_VERSION}-alpine AS builder | ||
MAINTAINER Michalski Luc <[email protected]> | ||
|
||
# change to app dir | ||
WORKDIR /app | ||
|
@@ -32,7 +31,7 @@ COPY requirements.txt . | |
RUN pip3 install -r requirements.txt | ||
|
||
FROM python:${PYTHON_VERSION}-alpine AS runtime | ||
MAINTAINER Luc Michalski <[email protected]> | ||
|
||
|
||
ARG VERSION | ||
ARG BUILD | ||
|
@@ -59,18 +58,17 @@ ENV PATH="/opt/venv/bin:$PATH" \ | |
VIRTUAL_ENV="/opt/venv" | ||
|
||
# Set container labels | ||
LABEL name="seoz-contrib-bert-summary" \ | ||
LABEL name="osat-contrib-bert-summary" \ | ||
version="$VERSION" \ | ||
build="$BUILD" \ | ||
architecture="x86_64" \ | ||
build_date="$NOW" \ | ||
vendor="seoz" \ | ||
maintainer="Luc Michalski <[email protected]>" \ | ||
url="https://github.com/seoz.io/seoz-docker" \ | ||
vendor="osat" \ | ||
url="https://github.com/osat.io/osat-docker" \ | ||
summary="SeoZ contrib - YAKE" \ | ||
description="SeoZ contrib - YAKE" \ | ||
vcs-type="git" \ | ||
vcs-url="https://github.com/seoz.io/seoz-docker" \ | ||
vcs-url="https://github.com/osat.io/osat-docker" \ | ||
vcs-ref="$VERSION" \ | ||
distribution-scope="public" | ||
|
||
|
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ ARG CUDA_VERSION=${CUDA_VERSION:-"10.2"} | |
ARG UBUNTU_VERSION=${UBUNTU_VERSION:-"18.04"} | ||
|
||
FROM nvidia/cuda:${CUDA_VERSION}-cudnn7-devel-ubuntu${UBUNTU_VERSION} | ||
MAINTAINER Michalski Luc <[email protected]> | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y sudo \ | ||
|
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,5 +1,4 @@ | ||
FROM ubuntu:18.04 | ||
MAINTAINER Michalski Luc <[email protected]> | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y sudo \ | ||
|
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,5 +1,5 @@ | ||
# General | ||
NAMESPACE="seoz" | ||
NAMESPACE="osat" | ||
|
||
# Tini | ||
TINI_VERSION="v0.19.0" | ||
|
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 @@ | ||
ARG PYTHON_VERSION=${PYTHON_VERSION:-"3.7.1"} | ||
|
||
FROM python:${PYTHON_VERSION}-alpine AS builder | ||
MAINTAINER Michalski Luc <[email protected]> | ||
|
||
ARG YAKE_VERSION=${YAKE_VERSION:-"master"} | ||
|
||
|
@@ -37,7 +36,7 @@ RUN wget https://raw.githubusercontent.com/LIAAD/yake/${YAKE_VERSION}/requiremen | |
RUN pip3 install git+https://github.com/liaad/yake.git@${YAKE_VERSION} | ||
|
||
FROM python:3-alpine AS runtime | ||
MAINTAINER Luc Michalski <[email protected]> | ||
|
||
|
||
ARG VERSION | ||
ARG BUILD | ||
|
@@ -64,18 +63,17 @@ ENV PATH="/opt/venv/bin:$PATH" \ | |
VIRTUAL_ENV="/opt/venv" | ||
|
||
# Set container labels | ||
LABEL name="seoz-contrib-yake" \ | ||
LABEL name="osat-contrib-yake" \ | ||
version="$VERSION" \ | ||
build="$BUILD" \ | ||
architecture="x86_64" \ | ||
build_date="$NOW" \ | ||
vendor="seoz" \ | ||
maintainer="Luc Michalski <[email protected]>" \ | ||
url="https://github.com/seoz.io/seoz-docker" \ | ||
vendor="osat" \ | ||
url="https://github.com/osat.io/osat-docker" \ | ||
summary="SeoZ contrib - YAKE" \ | ||
description="SeoZ contrib - YAKE" \ | ||
vcs-type="git" \ | ||
vcs-url="https://github.com/seoz.io/seoz-docker" \ | ||
vcs-url="https://github.com/osat.io/osat-docker" \ | ||
vcs-ref="$VERSION" \ | ||
distribution-scope="public" | ||
|
||
|
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
Oops, something went wrong.