add gitlab ci and entrypoint

parent 3f33fabf
Pipeline #69112 passed with stage
in 44 seconds
build:
image: docker:latest
stage: build
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker tag "$CI_REGISTRY_IMAGE" "$CI_REGISTRY_IMAGE":"$CI_COMMIT_REF_NAME"
- docker push "$CI_REGISTRY_IMAGE"
- docker push "$CI_REGISTRY_IMAGE":"$CI_COMMIT_REF_NAME"
#!/bin/bash
#lookup local ip address
if [ -z ${INTERFACE+x} ]; then
echo "INTERFACE is unset"
export LOCAL_IP="0.0.0.0"
else
echo "INTERFACE is set to '$INTERFACE'"
ip=($(ip addr show $INTERFACE | grep "inet "))
LOCAL_IP=${ip[1]%%/*}
fi
# set parameters for kvmtop
export PARAMS="-c qemu+tcp://${LOCAL_IP}:16509/system --printer=json --output=tcp --target=kvmtop-datasink.somehost.eu:12345 --cpu --mem --net --disk --io --host --verbose --netdev ethdata --frequency 1 --storedev sda1,sdb1"
export PROFILER_PARAMS="--states 4 --history 1 --filterstddevs 256 --outputFreq 60s --buffersize 10 --periodsize 6,60,720"
# call original entrypoint
./entrypoint
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment