Skip to content

Conversation

@RicardoJeronimo
Copy link
Contributor

@RicardoJeronimo RicardoJeronimo commented Jun 23, 2025

Adding:

  • Dockerfile (building from source)
  • Docker entrypoint script
  • Docker Compose example
  • GitHub Action to build container

The entrypoint script allows environment variables to be used in order to configure settings in local_settings.py, choose database backends, Memcached server and Redis broker. If a Redis broker is configured, the script asynchronously starts Celery alongside Apache httpd.

@zkiroel
Copy link

zkiroel commented Aug 24, 2025

hello, thx for this
got question about how it work
in my case then I docker-compose up -d system getting up and looks well
but after restart containers
patchman cont become not able to connect radis (Error 111 connecting to 127.0.0.1:6379. Connection refused), what can it be? thank you

@RicardoJeronimo
Copy link
Contributor Author

Hey, are you using the default docker-compose.yaml, or have you made changes to it?

@zkiroel
Copy link

zkiroel commented Aug 25, 2025

Hey, are you using the default docker-compose.yaml, or have you made changes to it?

default one

@RicardoJeronimo
Copy link
Contributor Author

Since this PR hasn't been accepted, you shouldn't be using the furlongm/patchman:latest image, as it wasn't built using this Dockerfile.
Ideally you'd be building the image yourself but you can test it by using ricardojeronim0/patchman:main, just be aware I don't update it often.

Comment on lines +9 to +42
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v6
with:
file: docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{vars.DOCKERHUB_USERNAME}}/${{vars.DOCKERHUB_CONTAINER}}:latest,${{vars.DOCKERHUB_USERNAME}}/${{vars.DOCKERHUB_CONTAINER}}:${{github.ref_name}}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Checkout for next job
uses: actions/checkout@v4

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{vars.DOCKERHUB_USERNAME}}/${{vars.DOCKERHUB_CONTAINER}}
readme-filepath: docker/README.md

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants