-
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.
- Loading branch information
lpmatos
committed
Jul 27, 2020
1 parent
282bd92
commit dc8129c
Showing
5 changed files
with
74 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ARG PYTHON_VERSION=3.8-alpine3.11 | ||
|
||
FROM python:${PYTHON_VERSION} as base | ||
|
||
FROM base as install-env | ||
|
||
COPY [ "requirements.txt", "."] | ||
|
||
RUN pip install --upgrade pip && \ | ||
pip install --upgrade setuptools && \ | ||
pip install --user --no-warn-script-location -r ./requirements.txt | ||
|
||
FROM base | ||
|
||
RUN set -ex && apk update | ||
|
||
COPY --from=install-env [ "/root/.local", "/usr/local" ] | ||
|
||
WORKDIR /usr/src/code | ||
|
||
COPY [ "./gitlab-clone", "." ] | ||
|
||
RUN find ./ -iname "*.py" -type f -exec chmod a+x {} \; -exec echo {} \;; |
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 +1 @@ | ||
module.exports = {extends: ['@commitlint/config-conventional']} | ||
module.exports = {extends: ['@commitlint/config-conventional']} |
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,48 @@ | ||
version: "3.8" | ||
|
||
# ============================================================================== | ||
# ANCHORS | ||
# ============================================================================== | ||
|
||
x-logging: &default-logging | ||
driver: "json-file" | ||
options: | ||
max-size: "500k" | ||
max-file: "20" | ||
|
||
x-entrypoint: &default-entrypoint | ||
entrypoint: > | ||
/bin/sh -c " | ||
set -e | ||
chmod a+x /usr/local/bin/wait && \ | ||
/usr/local/bin/wait && echo Hello | ||
/bin/bash || exit 0 | ||
" | ||
x-volumes: &default-volumes | ||
volumes: | ||
- ./scripts/wait:/usr/local/bin/wait | ||
|
||
# ============================================================================== | ||
# SERVICES | ||
# ============================================================================== | ||
|
||
services: | ||
|
||
python-rabbitmq: | ||
container_name: ${CONTAINER_NAME} | ||
env_file: [ "./.env" ] | ||
build: | ||
context: ./${PATH_DOCKERFILE} | ||
dockerfile: Dockerfile | ||
<<: *default-entrypoint | ||
stdin_open: true | ||
tty: true | ||
healthcheck: | ||
test: nc -z rabbitmq 5672 || exit 1 | ||
interval: 10s | ||
timeout: 2s | ||
retries: 10 | ||
restart: on-failure | ||
logging: *default-logging | ||
depends_on: [ "rabbitmq" ] | ||
<<: *default-volumes |
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 +1 @@ | ||
python-gitlab | ||
python-gitlab==2.4.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