Skip to content

Commit e516946

Browse files
committed
actions: Switched to new versions of actions as part of Node.js v16-to-v20 transition.
Updated Dockerfile to use the latest stable release of Clojure and added fontconfig and font packages. Extended README a bit.
1 parent 08ed499 commit e516946

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

.github/workflows/dockerimage.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ jobs:
1212
if: github.event_name == 'push'
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

1717
- name: Log into registry (DockerHub)
18-
uses: docker/login-action@v1
18+
uses: docker/login-action@v3
1919
with:
2020
username: ${{ secrets.DOCKERHUB_USERNAME }}
2121
password: ${{ secrets.DOCKERHUB_PASSWORD }}
2222

2323
- name: Log into registry (ghcr.io)
24-
uses: docker/login-action@v1
24+
uses: docker/login-action@v3
2525
with:
2626
registry: ghcr.io
2727
username: ${{ github.actor }}
2828
password: ${{ secrets.GHCR_PASSWORD }}
2929

3030
- name: Extract metadata
3131
id: metadata
32-
uses: docker/metadata-action@v3
32+
uses: docker/metadata-action@v5
3333
with:
3434
images: |
3535
vasilev/clojurescript
@@ -44,11 +44,9 @@ jobs:
4444
run: echo '${{ steps.metadata.outputs.json }}'
4545

4646
- name: Build and push the image
47-
uses: docker/build-push-action@v2
47+
uses: docker/build-push-action@v5
4848
with:
4949
context: .
5050
push: true
51-
build-args: |
52-
CLOJURE_VERSION=1.11.1.1208
5351
tags: ${{ steps.metadata.outputs.tags }}
5452
labels: ${{ steps.metadata.outputs.labels }}

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
FROM node:alpine
22

3-
ARG CLOJURE_VERSION=1.10.3.822
4-
5-
RUN apk --no-cache add openjdk11 curl bash \
3+
RUN apk --no-cache add openjdk11 curl bash fontconfig ttf-dejavu \
64
&& yarn global add shadow-cljs \
7-
&& curl -sSL https://download.clojure.org/install/linux-install-${CLOJURE_VERSION}.sh | bash
5+
&& curl -sSL https://github.com/clojure/brew-install/releases/latest/download/linux-install.sh | bash
86

97
ENTRYPOINT ["/bin/bash"]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ As long as Alpine-based Clojure images seem to be deprecated, just created the o
66

77
*Currently beta*
88

9+
This project is aimed to support interactive development like authoring code, testing, debugging, using REPL, etc.
10+
What's why it has `ENTRYPOINT ["/bin/bash"]` and contains additional packages required by `--repl` mode such as `fontconfig` and fonts.
11+
12+
If you're seeking a Docker image for intents other than interactive development, consider
13+
the [alternative](https://github.com/theasp/docker-clojurescript-nodejs/). That image has `CMD [ "node" ]` and may
14+
fullfill your needs better.
15+
916
# Alternatives
1017

1118
This project was created independently on the base of official documentation. Several weeks later found that following projects had used same approaches:

0 commit comments

Comments
 (0)