diff --git a/.docker/Dockerfile-alpine b/.docker/Dockerfile-alpine index c24b5cbc..6294f7d2 100644 --- a/.docker/Dockerfile-alpine +++ b/.docker/Dockerfile-alpine @@ -1,11 +1,11 @@ FROM alpine:3.20 +RUN apk add -U --no-cache ca-certificates libssl3 libcrypto3 bash + RUN addgroup -S ory; \ adduser -S ory -G ory -D -h /home/ory -s /bin/nologin; \ chown -R ory:ory /home/ory -RUN apk add -U --no-cache ca-certificates libssl3 libcrypto3 - COPY ory /usr/bin/ory USER ory diff --git a/.docker/Dockerfile-build b/.docker/Dockerfile-build index 0820a1f6..546e19a5 100644 --- a/.docker/Dockerfile-build +++ b/.docker/Dockerfile-build @@ -18,13 +18,13 @@ RUN CGO_CFLAGS="-D_LARGEFILE64_SOURCE" go build -tags sqlite,json1 -o /usr/bin/o FROM alpine:3.20 +RUN apk add -U --no-cache ca-certificates bash +RUN apk upgrade --no-cache libssl3 libcrypto3 + RUN addgroup -S ory; \ adduser -S ory -G ory -D -h /home/ory -s /bin/nologin; \ chown -R ory:ory /home/ory -RUN apk add -U --no-cache ca-certificates -RUN apk upgrade --no-cache libssl3 libcrypto3 - COPY --from=builder /usr/bin/ory /usr/bin/ory # Exposing the ory home directory to simplify passing in Kratos configuration (e.g. if the file $HOME/.kratos.yaml diff --git a/.github/workflows/test-integration.yaml b/.github/workflows/test-integration.yaml new file mode 100644 index 00000000..c17caa74 --- /dev/null +++ b/.github/workflows/test-integration.yaml @@ -0,0 +1,29 @@ +name: dogfood integration test +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + - master + +env: + ORY_PROJECT_ID: "6c2ec103-0b67-4cfe-a975-8008ede7d2ff" + ORY_WORKSPACE_ID: "d4c796bf-6062-4cf0-87fc-5fcbf41743bb" + ORY_WORKSPACE_API_KEY: ${{ secrets.ORY_WORKSPACE_API_KEY }} + +jobs: + gha: + runs-on: ubuntu-latest + container: + image: oryd/ory:v1.1.0 + # temporary until we release new image + options: --user root + steps: + - name: checkout + uses: actions/checkout@v4 + # temporary until we release new image + - name: add bash + run: apk add bash + - name: Check integration + run: ory get project ${{ env.ORY_PROJECT_ID }}