Skip to content

Commit

Permalink
feat: unix socket image (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
  • Loading branch information
aepfli authored Jan 3, 2025
1 parent f3e9811 commit a31c7d9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ jobs:
file: flagd/Dockerfile
target: ssl
push: false

- name: Build flagd-testbed-socket Docker image
uses: docker/build-push-action@v6
with:
context: .
file: flagd/Dockerfile
target: socket
push: false

11 changes: 11 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,14 @@ jobs:
${{ env.REGISTRY }}/open-feature/${{ env.FLAGD_IMAGE_NAME }}-ssl:${{ needs.release-please.outputs.release_tag_name }}
${{ env.REGISTRY }}/open-feature/${{ env.FLAGD_IMAGE_NAME }}-ssl:latest
- name: Build and push flagd-testbed-ssl Docker image
uses: docker/build-push-action@v6
with:
context: .
file: flagd/Dockerfile
target: socket
push: true
tags: |
${{ env.REGISTRY }}/open-feature/${{ env.FLAGD_IMAGE_NAME }}-socket:${{ needs.release-please.outputs.release_tag_name }}
${{ env.REGISTRY }}/open-feature/${{ env.FLAGD_IMAGE_NAME }}-socket:latest
7 changes: 7 additions & 0 deletions flagd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ ENTRYPOINT ["./flagd", "start",\
"-f", "file:testing-flags.json", \
"-c", "/etc/ssl/certs/server-cert.pem", \
"-k", "/etc/ssl/private/server-key.pem"]

FROM testbed AS socket

USER 1000:1000
ENTRYPOINT ["./flagd", "start", "-x",\
"-f", "file:testing-flags.json", \
"-d", "/tmp/socket.sock"]

0 comments on commit a31c7d9

Please sign in to comment.