Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Define services in config and add Docker workflow#41

Open
iamsilk wants to merge 13 commits intoOpenAttackDefenseTools:masterfrom
iamsilk:master
Open

Define services in config and add Docker workflow#41
iamsilk wants to merge 13 commits intoOpenAttackDefenseTools:masterfrom
iamsilk:master

Conversation

Copy link

iamsilk commented May 5, 2024

This PR makes two additions:

  1. Services are defined via the config instead of code. This works by adding two environment variables: VM_IP and TULIP_SERVICES_PATH. The TULIP_SERVICES_PATH variable specifies the path to a JSON file with the services.
  2. Adds a GitHub workflow to build and publish each Docker image, removing the need to build the images on the deployment machine.

This PR publishes the Docker images to the GitHub Container Registry, not Docker Hub. My use case used GHCR, but feel free to adjust the workflow to your needs.

If merging, make sure to change the image links in the docker-compose.prod.yml file from ghcr.io/iamsilk to ghcr.io/OpenAttackDefenseTools.

Copy link
Contributor

meme-lord commented Jun 26, 2024

This is great, you can make it cleaner by just putting the json data into the .env file:

# The services and ports
SERVICES_JSON='[
{
"port": 9876,
"name": "cc_market"
},
{
"port": 80,
"name": "maze"
},
{
"port": 8080,
"name": "scadent"
},
{
"port": 5000,
"name": "starchaser"
},
{
"port": 1883,
"name": "scadnet_bin"
},
{
"port": -1,
"name": "other"
}
]'

AnuchaRodpha approved these changes Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

AnuchaRodpha AnuchaRodpha approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants