Skip to content

Commit

Permalink
test(storage): swap seaweedfs upstream image for cryostat-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jan 15, 2024
1 parent 997f141 commit 0106a5c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 48 deletions.
11 changes: 0 additions & 11 deletions smoketest.bash
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ cleanup() {
down "${downFlags[@]}"
${container_engine} rm proxy_cfg_helper || true
${container_engine} volume rm auth_proxy_cfg || true
${container_engine} rm seaweed_cfg_helper || true
${container_engine} volume rm seaweed_cfg || true
# podman kill hoster || true
truncate -s 0 "${HOSTSFILE}"
for i in "${PIDS[@]}"; do
Expand All @@ -172,15 +170,6 @@ if [ "${USE_PROXY}" = "true" ]; then
createProxyCfgVolume
fi

createSeaweedConfigVolume() {
"${container_engine}" volume create seaweed_cfg
"${container_engine}" container create --name seaweed_cfg_helper -v seaweed_cfg:/tmp busybox
"${container_engine}" cp "${DIR}/smoketest/compose/seaweed_cfg.json" seaweed_cfg_helper:/tmp/seaweed_cfg.json
}
if [ "${s3}" = "seaweed" ]; then
createSeaweedConfigVolume
fi

setupUserHosts() {
# FIXME this is broken: it puts the containers' bridge-internal IP addresses
# into the user hosts file, but these IPs are in a subnet not reachable from the host.
Expand Down
18 changes: 9 additions & 9 deletions smoketest/compose/s3-seaweed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ services:
AWS_ACCESS_KEY_ID: access_key
AWS_SECRET_ACCESS_KEY: secret_key
s3:
image: ${SEAWEEDFS_IMAGE:-docker.io/chrislusf/seaweedfs:latest}
image: ${SEAWEEDFS_IMAGE:-quay.io/cryostat/cryostat-storage:latest}
hostname: s3
command: server -dir=/data -s3 -s3.config=/opt/seaweed_cfg.json
environment:
CRYOSTAT_ACCESS_KEY: access_key
CRYOSTAT_SECRET_KEY: secret_key
DATA_DIR: /data
IP_BIND: 0.0.0.0
WEED_V: '4' # glog logging level
volumes:
- seaweed_data:/data
- seaweed_cfg:/opt
expose:
- "8333"
labels:
Expand All @@ -30,10 +31,11 @@ services:
healthcheck:
test:
- CMD-SHELL
- wget
- --tries=1
- --spider
- http://s3:8333/
- timeout
- 5s
- bash
- -c
- :> /dev/tcp/127.0.0.1/8333
interval: 10s
retries: 3
start_period: 30s
Expand All @@ -42,5 +44,3 @@ services:
volumes:
seaweed_data:
driver: local
seaweed_cfg:
external: true
28 changes: 0 additions & 28 deletions smoketest/compose/seaweed_cfg.json

This file was deleted.

0 comments on commit 0106a5c

Please sign in to comment.