Skip to content

Commit

Permalink
fix run-all.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
up9cloud committed Jul 1, 2024
1 parent 8cf8a61 commit 36ed4a9
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
file: ./server/Dockerfile
tags: sstc/gocron:server
tags: sstc/gocron2:server
- uses: actions/checkout@v4
- uses: christian-korneck/update-container-description-action@v1
env:
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile-0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.7 AS builder
FROM alpine:3.20 AS builder

ENV GOCRON2_VERSION=1.6.2
ENV GOCRON2_REPO_BASEURL=https://github.com/up9cloud/gocron2
Expand All @@ -15,5 +15,6 @@ RUN set -ex; \
tar zvxf ${GOCRON2_DOWNLOAD_FILE}; \
wget ${GOCRON2_NODE_DOWNLOAD_URL}; \
tar zvxf ${GOCRON2_NODE_DOWNLOAD_FILE}; \
wget ${CERTSTRAP_DOWNLOAD_URL} -o certstrap; \
chmod +x certstrap
wget ${CERTSTRAP_DOWNLOAD_URL} -O certstrap; \
chmod +x certstrap; \
chown -R root:root .
8 changes: 4 additions & 4 deletions Dockerfile-all.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ RUN set -ex; \
jq \
; \
# In the mean time, install all popular scripting languages
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -; \
# curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -; \
DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y \
nodejs \
npm \
# nodejs \
# npm \
php \
ruby \
lua5.4 \
; \
bash --version; \
perl --version; \
python2 --version; \
# python2 --version; \
python3 --version; \
node -v; \
npm -v; \
Expand Down
15 changes: 8 additions & 7 deletions all/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.7 AS builder
FROM alpine:3.20 AS builder

ENV GOCRON2_VERSION=1.6.2
ENV GOCRON2_REPO_BASEURL=https://github.com/up9cloud/gocron2
Expand All @@ -15,8 +15,9 @@ RUN set -ex; \
tar zvxf ${GOCRON2_DOWNLOAD_FILE}; \
wget ${GOCRON2_NODE_DOWNLOAD_URL}; \
tar zvxf ${GOCRON2_NODE_DOWNLOAD_FILE}; \
wget ${CERTSTRAP_DOWNLOAD_URL} -o certstrap; \
chmod +x certstrap
wget ${CERTSTRAP_DOWNLOAD_URL} -O certstrap; \
chmod +x certstrap; \
chown -R root:root .

FROM sstc/headful-chromium:ubuntu-24
RUN set -ex; \
Expand All @@ -30,17 +31,17 @@ RUN set -ex; \
jq \
; \
# In the mean time, install all popular scripting languages
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -; \
# curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -; \
DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y \
nodejs \
npm \
# nodejs \
# npm \
php \
ruby \
lua5.4 \
; \
bash --version; \
perl --version; \
python2 --version; \
# python2 --version; \
python3 --version; \
node -v; \
npm -v; \
Expand Down
4 changes: 2 additions & 2 deletions run-all.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

./gocron web &
./gocron-node -allow-root &
./gocron2 web &
./gocron2-node -allow-root &
wait -n
exit $?
7 changes: 4 additions & 3 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.7 AS builder
FROM alpine:3.20 AS builder

ENV GOCRON2_VERSION=1.6.2
ENV GOCRON2_REPO_BASEURL=https://github.com/up9cloud/gocron2
Expand All @@ -15,8 +15,9 @@ RUN set -ex; \
tar zvxf ${GOCRON2_DOWNLOAD_FILE}; \
wget ${GOCRON2_NODE_DOWNLOAD_URL}; \
tar zvxf ${GOCRON2_NODE_DOWNLOAD_FILE}; \
wget ${CERTSTRAP_DOWNLOAD_URL} -o certstrap; \
chmod +x certstrap
wget ${CERTSTRAP_DOWNLOAD_URL} -O certstrap; \
chmod +x certstrap; \
chown -R root:root .

FROM scratch

Expand Down

0 comments on commit 36ed4a9

Please sign in to comment.