Skip to content

Commit 60392ba

Browse files
committed
Feedback corrections
1 parent b7bc9f0 commit 60392ba

7 files changed

Lines changed: 14 additions & 12 deletions

File tree

File renamed without changes.

.github/workflows/build-and-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
arch: arm64
2727
steps:
2828
- name: Checkout the repo
29-
uses: actions/checkout@v6
29+
uses: actions/checkout@v6.0.2
3030

3131
- name: Login to DockerHub
3232
uses: docker/login-action@v4

.github/workflows/dive.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ jobs:
2323
- name: Dive
2424
uses: yuichielectric/dive-action@0.0.4
2525
with:
26+
config-file: ${{ github.workspace }}/.dive-ci.yml
2627
image: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}'

CHANGES.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
* Better document use of `docker buildx ...` for local builds
1919
* Better noted and organized the different build processes for PHP extensions
2020
* Date component of PHP extension shared objects directory now a build argument
21+
* Dockerfile base now based on `phpswoole/swoole:php8.5-alpine`
2122
* Dockerfile compile and final stage system packages aligned
22-
* Github action for container-structure-test now uses a marketplace action
23-
* Github action runners pinned to Ubuntu 24.04
24-
* ImageMagick version bumped to 7.1.2.15, tests.yaml aligned to ensure new version
25-
* PHP version bumped to 8.5.3
23+
* GitHub action for container-structure-test now uses a marketplace action
24+
* GitHub action runners pinned to Ubuntu 24.04
25+
* ImageMagick version bumped to 7.1.2.15 via APK
26+
* PHP version bumped to 8.5
2627
* Refactored multi-arch build process to prevent cross-arch builds requiring long wait times
27-
* Swoole version bumped to 6.2.0
2828

2929
### Fixes
3030

@@ -35,4 +35,4 @@
3535
### Removed
3636

3737
* Build tools from final stage of Dockerfile
38-
* Github action to Setup QEMU as GitHub now provides native ARM runners
38+
* GitHub action to Setup QEMU as GitHub now provides native ARM runners

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ ENV \
2121
RUN \
2222
apk update && \
2323
apk upgrade && \
24-
apk add --no-cache --virtual .deps && \
25-
apk add --no-cache \
24+
apk add --no-cache --virtual .deps \
25+
&& apk add --no-cache \
2626
autoconf \
2727
automake \
2828
brotli-dev \
@@ -185,7 +185,8 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
185185
RUN \
186186
apk update && \
187187
apk upgrade && \
188-
apk add --no-cache \
188+
apk add --no-cache --virtual .deps \
189+
&& apk add --no-cache \
189190
autoconf \
190191
automake \
191192
brotli-dev \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ trivy image --format json --pkg-types os,library --severity CRITICAL,HIGH --ou
5353
```bash
5454
container-structure-test test --config tests.yaml --image appwrite/base:latest
5555
# PASS
56-
CI=true dive appwrite/base:latest
56+
CI=true dive --confog .dive-ci.yml appwrite/base:latest
5757
# Results:
5858
# PASS: highestUserWastedPercent
5959
# PASS: highestWastedBytes

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
- can we get pre-compiled extensions *.so / extensions?
44
- xdebug as separate image `appwrite/base:XYZ-xdebug`
5-
- Github action should only build the image once, cache it, the use it downstream. No need to build it in every job
5+
- GitHub action should only build the image once, cache it, the use it downstream. No need to build it in every job
66
- https://stackoverflow.com/questions/75632970/how-to-use-docker-build-in-next-step-of-github-actions-after-build-step

0 commit comments

Comments
 (0)