-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Change docker image, enable server build (#2716)
- Loading branch information
Showing
7 changed files
with
70 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
./clusters | ||
./common | ||
./services | ||
./charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
test-server: | ||
#!/usr/bin/env bash | ||
set -euox pipefail | ||
CONTAINER_ID=$(just --justfile {{ justfile() }} --working-directory {{ invocation_directory() }} _run_server 2>&1 | tail -n 1) | ||
trap "docker kill ${CONTAINER_ID}" EXIT | ||
curl --no-progress-meter --output /dev/null --retry-connrefused --retry 5 --retry-delay 3 http://localhost:5000/{{ archive_name }} | ||
test_container_name := "kommander-applications-server" | ||
|
||
test-server: _run_server | ||
sleep 3 # wait for container | ||
git ls-remote git://localhost:12345/data | ||
|
||
_run_server: (release-server "false") | ||
docker run \ | ||
--env DUFS_TLS_CERT \ | ||
--env DUFS_TLS_KEY \ | ||
--network=host \ | ||
--name {{ test_container_name }} \ | ||
--publish 12345:12345 \ | ||
--detach \ | ||
--user 1000:1000 \ | ||
{{ server_docker_repository }}:{{ git_tag }} | ||
|
||
_kill_server: | ||
docker kill {{ test_container_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
FROM sigoden/dufs | ||
FROM alpine:3.20.3 | ||
|
||
ARG ARCHIVE_NAME | ||
LABEL org.opencontainers.image.source=https://github.com/alpinelinux/docker-alpine | ||
|
||
# Dufs settings: | ||
ENV DUFS_BIND=127.0.0.1 | ||
ENV DUFS_PORT=5000 | ||
ENV DUFS_TLS_CERT=cert.pem | ||
ENV DUFS_TLS_KEY=key.pem | ||
RUN apk add --update git && \ | ||
apk add --update git-daemon \ | ||
rm -rf /var/cache/apk/* | ||
|
||
COPY ${ARCHIVE_NAME} /data/ | ||
COPY --chown=1000:1000 data /data | ||
|
||
CMD ["/data"] | ||
CMD ["git", "daemon", "--verbose", "--port=12345","--export-all", "/data"] |