Skip to content

Commit 71aa83a

Browse files
authored
build operator last (#327)
* build operator last * dummy change to trigger gcsfuse rebuild * dummy change to trigger workflow * Automated commit: update images.
1 parent 4eed77e commit 71aa83a

File tree

10 files changed

+13
-11
lines changed

10 files changed

+13
-11
lines changed

.github/workflows/update-images.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
certbot-digest: ${{ steps.push.outputs.certbot-digest }}
3535
strategy:
3636
matrix:
37-
image: ["kctf-operator", "challenge", "healthcheck", "gcsfuse", "certbot"]
37+
image: ["challenge", "healthcheck", "gcsfuse", "certbot", "kctf-operator"]
3838
steps:
3939
- uses: actions/checkout@v2
4040
with:
@@ -44,7 +44,7 @@ jobs:
4444
name: Check for modified paths
4545
run: |
4646
if [ "${{ matrix.image }}" == "kctf-operator" ]; then
47-
PATHS=(".github/workflows/update-images.yaml" "kctf-operator/*" "kctf-operator/build/**" "kctf-operator/cmd/**" "kctf-operator/pkg/**" "kctf-operator/version/**" "docker-images/gcsfuse/**" "docker-images/certbot/**")
47+
PATHS=(".github/workflows/update-images.yaml" "kctf-operator/*" "kctf-operator/build/**" "kctf-operator/cmd/**" "kctf-operator/pkg/**" "kctf-operator/version/**")
4848
else
4949
PATHS=(".github/workflows/update-images.yaml" "docker-images/${{ matrix.image }}/**")
5050
fi

dist/challenge-templates/pwn/challenge/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN /usr/sbin/useradd --no-create-home -u 1000 user
1818
COPY flag /
1919
COPY chal /home/user/
2020

21-
FROM gcr.io/kctf-docker/challenge@sha256:035cc67b4dfd74077a8a305321b17854481308dec5af28fc8ad1d6c75d729340
21+
FROM gcr.io/kctf-docker/challenge@sha256:56f7dddff69d08d4d19f4921c724d438cf4d59e434c601f9776fd818368b7107
2222

2323
COPY --from=chroot / /chroot
2424

dist/challenge-templates/pwn/healthcheck/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
FROM gcr.io/kctf-docker/healthcheck@sha256:18fe7058d40100b7eb2eca0a274fc2f41403d44706ae969bcef01400b3bfde64
14+
FROM gcr.io/kctf-docker/healthcheck@sha256:57c1002a2a8b8741bd2f6b9ee3e1da2c5b3872459b789255895bb8cdf297b911
1515

1616
COPY healthcheck_loop.sh healthcheck.py healthz_webserver.py /home/user/
1717

dist/challenge-templates/web/challenge/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ COPY web-servers /web-servers
4040

4141
COPY flag /
4242

43-
FROM gcr.io/kctf-docker/challenge@sha256:035cc67b4dfd74077a8a305321b17854481308dec5af28fc8ad1d6c75d729340
43+
FROM gcr.io/kctf-docker/challenge@sha256:56f7dddff69d08d4d19f4921c724d438cf4d59e434c601f9776fd818368b7107
4444

4545
RUN apt-get update \
4646
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends tzdata apache2 \

dist/challenge-templates/web/healthcheck/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
FROM gcr.io/kctf-docker/healthcheck@sha256:18fe7058d40100b7eb2eca0a274fc2f41403d44706ae969bcef01400b3bfde64
14+
FROM gcr.io/kctf-docker/healthcheck@sha256:57c1002a2a8b8741bd2f6b9ee3e1da2c5b3872459b789255895bb8cdf297b911
1515

1616
COPY healthcheck_loop.sh healthcheck.py healthz_webserver.py /home/user/
1717

dist/challenge-templates/xss-bot/challenge/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
FROM gcr.io/kctf-docker/challenge@sha256:035cc67b4dfd74077a8a305321b17854481308dec5af28fc8ad1d6c75d729340
14+
FROM gcr.io/kctf-docker/challenge@sha256:56f7dddff69d08d4d19f4921c724d438cf4d59e434c601f9776fd818368b7107
1515

1616
RUN apt-get update && apt-get install -y gnupg2
1717

dist/challenge-templates/xss-bot/healthcheck/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
FROM gcr.io/kctf-docker/healthcheck@sha256:18fe7058d40100b7eb2eca0a274fc2f41403d44706ae969bcef01400b3bfde64
14+
FROM gcr.io/kctf-docker/healthcheck@sha256:57c1002a2a8b8741bd2f6b9ee3e1da2c5b3872459b789255895bb8cdf297b911
1515

1616
COPY healthcheck_loop.sh healthcheck.py healthz_webserver.py /home/user/
1717

dist/resources/operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
serviceAccountName: kctf-operator
1717
containers:
1818
- name: kctf-operator
19-
image: gcr.io/kctf-docker/kctf-operator@sha256:ef79e76158b7255ac408ce785c664b4e3ca6490d590a71f6e28c805d6a9f6c73
19+
image: gcr.io/kctf-docker/kctf-operator@sha256:a42991dd7d2d4267815572912ce0410094d8a83af50df1f12b86616de890c9ac
2020
command:
2121
- kctf-operator
2222
imagePullPolicy: Always

docker-images/gcsfuse/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM ubuntu:20.04
2+
23
RUN apt-get update && apt-get install -y wget fuse
34
RUN wget -q https://github.com/GoogleCloudPlatform/gcsfuse/releases/download/v0.35.1/gcsfuse_0.35.1_amd64.deb && dpkg -i gcsfuse_0.35.1_amd64.deb
45
RUN mkdir -p /mnt/disks/gcs
6+
57
CMD test -f /config/gcs_bucket &&\
68
gcsfuse --foreground --debug_fuse --debug_gcs --stat-cache-ttl 0 -type-cache-ttl 0 -o allow_other -o nonempty --file-mode 0777 --dir-mode 0777 --uid 1000 --gid 1000 "$(cat /config/gcs_bucket)" /mnt/disks/gcs

kctf-operator/pkg/resources/constants.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ package resources
55
// == || These are set by automation || ==
66
// .. vv ........................... vv ..
77

8-
const DOCKER_CERTBOT_IMAGE = "gcr.io/kctf-docker/certbot@sha256:b300d156df46be2615822f4f086b94a19f5101690948a9135be57aadd501ccf6"
9-
const DOCKER_GCSFUSE_IMAGE = "gcr.io/kctf-docker/gcsfuse@sha256:fecd90f412a624b36e76a15c5dfb6648f357dc9cc523b77fa58ad97b3d37a5c9"
8+
const DOCKER_CERTBOT_IMAGE = "gcr.io/kctf-docker/certbot@sha256:82be4c84fad2a11a6b92aa472cab2dd7018178ab89f27d4d77f46997ff539229"
9+
const DOCKER_GCSFUSE_IMAGE = "gcr.io/kctf-docker/gcsfuse@sha256:560897fba48dffba06e3a03c0b959bebc5e8bcb01d51e71bce75e05d0ad71119"
1010

1111
// .. ^^ ........................... ^^ ..
1212
// == || These are set by automation || ==

0 commit comments

Comments
 (0)