Permet le déploiement de conteneurs Docker sur Runner sans avoir le problème de l'interprétation des variables d'environnement.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Céleste BARBOSA 849215b380
continuous-integration/drone/push Build is passing Details
Correction repos Thomas
2 months ago
.drone.yml Correction repos Thomas 2 months ago
.gitignore Correction repos Thomas 2 months ago
.golangci.yml Correction repos Thomas 2 months ago
Dockerfile Correction repos Thomas 2 months ago
README.md Correction repos Thomas 2 months ago
entrypoint.sh Correction repos Thomas 2 months ago
go.mod Correction repos Thomas 2 months ago
go.sum Correction repos Thomas 2 months ago
main.go Correction repos Thomas 2 months ago

README.md

sur le proxy:

docker network create cicd_net
./zig-out/bin/codefirst-dockerproxy -d

sur le client web:

# Ajuster la constante proxyUrl et proxyPath puis compiler.
docker run --rm -it --volume $(pwd):/app sandrokeil/typescript tsc /app/src/index.ts
mv src/index.js build/src/index.js

# Build l'image.
docker build -t hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientweb .

# Run le container.
docker run -p 8081:80 hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientweb

-> http://localhost:8081/dockerrunner/

sur le client cd:

go run . -proxyhost localhost:8080 -devel -command create -imagename nginx -containername nginx1 -admins john.doe,mickey.mouse
go run . -proxyhost localhost:8080 -devel -command create -imagename nginx -containername nginx2
go run . -proxyhost localhost:8080 -devel -command create -imagename nginx -containername nginx3