Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
trethomas-ecintl committed Aug 26, 2024
1 parent 7b29ee4 commit 97490f2
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,60 @@
---
x-linting-common: &linting-common
environment:
- RUN_LOCAL=true
- USE_FIND_ALGORITHM=true
- VALIDATE_ALL_CODEBASE=true
- FILTER_REGEX_EXCLUDE=.*/\.mypy_cache/.*
x-ci-common: &testing-common
command: ["/bin/bash", "-c", ". run-ci"]
env_file:
- environments/testing.env
services:
testing:
<<: *testing-common
build:
context: .
target: testing
dockerfile: Dockerfile
args:
- USERNAME=eci-user
command: ["sh", "-c", "./run-ci"]
env_file:
- environments/testing.env
volumes:
- type: bind
source: ~/awk-src
target: /awk-src
source: ~/md-src/workflow-templates
target: /workflow-templates
read_only: false
profiles:
- testing


ci-testing:
<<: *testing-common
build:
context: .
target: ci-testing
args:
- USERNAME=eci-user
profiles:
- ci-testing
linting:
image: github/super-linter:v5
<<: *linting-common
volumes:
- ~/awk-src:/tmp/lint
env_file:
- environments/linter.env
environment:
- RUN_LOCAL=true
- USE_FIND_ALGORITHM=true
- VALIDATE_ALL_CODEBASE=true
- ~/md-src/workflow-templates:/tmp/lint
profiles:
- linting

continuous-integration:
ci-linting:
build:
context: .
target: continuous-integration
dockerfile: Dockerfile
target: ci-linting
args:
- USERNAME=eci-user
command: ["sh", "-c", "sudo ./run-ci"]
env_file:
- environments/testing.env
<<: *linting-common
profiles:
- continuous-integration

- ci-linting
developing:
build:
context: .
dockerfile: Dockerfile
args:
- USERNAME=${USER}
command: ["sh", "-c", ". /tmp/install && nohup /tmp/.sleeping_daemon"]
command: ["/bin/bash", "-c", ". /tmp/install && nohup /tmp/.sleeping_daemon"]
env_file:
- environments/development.env
volumes:
Expand All @@ -60,8 +63,8 @@ services:
target: /home/${USER}/.ssh
read_only: true
- type: bind
source: ~/awk-src
target: /home/${USER}/awk-src
source: ~/md-src/workflow-templates
target: /home/${USER}/workflow-templates
read_only: false
profiles:
- developing

0 comments on commit 97490f2

Please sign in to comment.