Skip to content

Commit

Permalink
chore: add bash to the image
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonsthere committed Dec 4, 2024
1 parent 11d1da7 commit dceeeaa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .docker/Dockerfile-alpine
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions .docker/Dockerfile-build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: add bash
run: apk add bash
- name: read files from the repo
run: cat README.md
- name: write to file
run: echo "am i read/write?" > write
- name: read created file
run: cat write
- name: run script from filesystem
shell: bash
run: |
pwd
ls -al
ls -al scripts
cd scripts && ./hello.sh
- name: Check integration
run: ory get project ${{ env.ORY_PROJECT_ID }}
./scripts/hello.sh
# - name: Check integration
# run: ory get project ${{ env.ORY_PROJECT_ID }}

0 comments on commit dceeeaa

Please sign in to comment.