Skip to content

Commit

Permalink
Add summit-legacy docker for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Nov 13, 2024
1 parent 9879daa commit a9a52f2
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/target
crates/**/.privkey
*.db

test/summit-legacy/cache
test/summit-legacy/db
32 changes: 32 additions & 0 deletions Dockerfile-legacy-summit
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM debian:bookworm AS builder
RUN apt update
RUN apt install -y \
build-essential \
curl \
wget \
git \
libcurl4-openssl-dev \
libdbus-1-dev \
liblmdb-dev \
libsodium-dev \
libssl-dev \
libxml2-dev \
libxxhash-dev \
libz-dev \
libzstd-dev
RUN mkdir -p ~/dlang && wget https://dlang.org/install.sh -O ~/dlang/install.sh
RUN chmod +x ~/dlang/install.sh
RUN ~/dlang/install.sh install ldc-1.32.2
RUN git clone https://github.com/serpent-os/libmoss.git
RUN git clone https://github.com/serpent-os/moss-service.git
RUN git clone https://github.com/serpent-os/summit.git
RUN --mount=type=cache,target=/root/.dub <<"EOT" /bin/bash
source ~/dlang/ldc-1.32.2/activate
cd summit
dub build --parallel
EOT

EXPOSE 8001
WORKDIR /summit
VOLUME /summit/state
CMD ["/summit/summit", "-a", "0.0.0.0", "-p", "5000"]
8 changes: 6 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ help:

[private]
docker-build target:
@docker build . -t serpentos/{{target}} --target {{target}} --no-cache
@docker build . -t serpentos/{{target}} --target {{target}}

[private]
docker-build-legacy:
@docker build . -t serpentos/summit-legacy -f Dockerfile-legacy-summit

# Build docker containers
build: (docker-build "summit") (docker-build "vessel")
build: docker-build-legacy (docker-build "vessel")

# Bring up docker containers
up: build
Expand Down
7 changes: 7 additions & 0 deletions test/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ services:
# vessel:
# condition: service_started
# restart: true
summit:
image: serpentos/summit-legacy
ports:
- "5000:5000"
volumes:
- ./summit-legacy:/summit/state
user: ${MY_UID}:${MY_GID}
vessel:
image: serpentos/vessel
ports:
Expand Down
1 change: 1 addition & 0 deletions test/summit-legacy/.privkey
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f�S�� ���bt��8�D�F�+��:4��P�M��������L� Ի[G�GP}�0
1 change: 1 addition & 0 deletions test/summit-legacy/.pubkey
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�P�M��������L� Ի[G�GP}�0
1 change: 1 addition & 0 deletions test/summit-legacy/.seed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f�S�� ���bt��8�D�F�+��:4�
2 changes: 1 addition & 1 deletion test/vessel/config.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "Vessel (test)"
host_address = "http://vessel:5001"

upstream = "5EsZZSY4BoECd1jTsTne5fXlBuVSWaFFsBSyMfpvkp0"
upstream = "xlDUTRLRyfSxnBOtx_KvrUzKCxLUu1tHwEdQfeChMBY"

[tracing]
level_filter = "info,vessel=debug,service=debug"
Expand Down

0 comments on commit a9a52f2

Please sign in to comment.