forked from cerc-io/stack-orchestrator
Simple container for testing stack orchestrator
This commit is contained in:
parent
20fae9f2c0
commit
2aae7dd59f
5
compose/docker-compose-test.yml
Normal file
5
compose/docker-compose-test.yml
Normal file
@ -0,0 +1,5 @@
|
||||
version: "3.2"
|
||||
services:
|
||||
test:
|
||||
image: cerc/test-container:local
|
||||
restart: always
|
5
container-build/cerc-test-container/Dockerfile
Normal file
5
container-build/cerc-test-container/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM alpine:latest
|
||||
|
||||
COPY run.sh /app/run.sh
|
||||
|
||||
ENTRYPOINT ["/app/run.sh"]
|
4
container-build/cerc-test-container/build.sh
Executable file
4
container-build/cerc-test-container/build.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build cerc/test-container
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
docker build -t cerc/test-container:local -f ${SCRIPT_DIR}/Dockerfile $SCRIPT_DIR
|
16
container-build/cerc-test-container/run.sh
Executable file
16
container-build/cerc-test-container/run.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Test if the container's filesystem is old (run previously) or new
|
||||
EXISTSFILENAME=/var/exists
|
||||
echo "Test container starting"
|
||||
if [[ -f "$EXISTSFILENAME" ]];
|
||||
then
|
||||
TIMESTAMP = `cat $EXISTSFILENAME`
|
||||
echo "Filesystem is old, created: $TIMESTAMP"
|
||||
else
|
||||
echo "Filesystem is fresh"
|
||||
echo `date` > $EXISTSFILENAME
|
||||
fi
|
||||
|
||||
# Sleep forever to keep docker happy
|
||||
while true; do sleep 10; done
|
@ -12,3 +12,4 @@ cerc/laconicd
|
||||
cerc/laconic-cns-cli
|
||||
cerc/fixturenet-eth-geth
|
||||
cerc/fixturenet-eth-lighthouse
|
||||
cerc/test-container
|
||||
|
@ -9,3 +9,4 @@ lighthouse
|
||||
prometheus-grafana
|
||||
laconicd
|
||||
fixturenet-eth
|
||||
test
|
||||
|
Loading…
Reference in New Issue
Block a user