Rewrite in Zig
This commit is contained in:
39
README.md
39
README.md
@@ -1,27 +1,18 @@
|
||||
sur le proxy:
|
||||
```
|
||||
docker network create cicd_net
|
||||
./zig-out/bin/codefirst-dockerproxy -d
|
||||
# codefirst-dockerproxy-clientdrone
|
||||
|
||||
Usage:
|
||||
|
||||
```yaml
|
||||
- name: deploy-container
|
||||
image: hub.codefirst.iut.uca.fr/clement.freville2/codefirst-dockerproxy-clientdrone:latest
|
||||
settings:
|
||||
image: hub.codefirst.iut.uca.fr/my.login/my_repository:latest
|
||||
container: my_container_name
|
||||
command: create
|
||||
overwrite: true
|
||||
```
|
||||
|
||||
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
|
||||
## Changes from upstream
|
||||
|
||||
# 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
|
||||
```
|
||||
- Removed the shell script to handle spaces in arguments.
|
||||
- Used Drone settings instead of environment variables.
|
||||
|
Reference in New Issue
Block a user