Skip to content

Commit

Permalink
eksperimenti iom pri testo per docker-compose...
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfram Diestel committed Mar 7, 2020
1 parent 03b5f06 commit 8c9144a
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 5 deletions.
8 changes: 5 additions & 3 deletions docker-build-push-local.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

docker build -t voko-formiko .
docker tag voko-formiko registry.local:5000/voko-formiko
docker push registry.local:5000/voko-formiko
img=voko-formiko

docker build -t $img .
docker tag $img registry.local:5000/$img
docker push registry.local:5000/$img
2 changes: 1 addition & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ secrets:
file: ${HOME}/etc/redaktantoj

configs:
# alternatice uzu file: ...
# alternative uzu file: ...
# por rekte lasi la agordon sur la docker-gastiganto
voko-formiko.agordo-cron:
external: true
Expand Down
53 changes: 53 additions & 0 deletions docker-compose.test2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: '3'

services:
sut: # test container
image: gcr.io/gcp-runtimes/container-structure-test
#build: https://github.com/GoogleContainerTools/container-structure-test.git#:deploy
command: test --image voko-formiko --config voko-formiko-test.yaml -v debug
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./tst/voko-formiko-test.yaml:/voko-formiko-test.yaml

## formiko:
## image: voko-formiko
## build: Dockerfile
## # restart: always
# volumes:
# - formiko-revo:/home/formiko/revo
# - formiko-tmp:/home/formiko/tmp
# - formiko-log:/home/formiko/log
# secrets:
# - voko-formiko.ssh_key
# configs:
# - source: voko-formiko.agordo-cron
# #uid: '1001'
# mode: 0644
# - source: voko-formiko.agordo-redaktoservo
# target: /home/formiko/etc/redaktoservo-agordo
# mode: 0444

# secrets:
#
# voko-formiko.ssh_key:
# external: true
#
# voko.redaktantoj:
# #external: true
# file: ${HOME}/etc/redaktantoj
#
# configs:
# # alternative uzu file: ...
# # por rekte lasi la agordon sur la docker-gastiganto
# voko-formiko.agordo-cron:
# external: true
# voko-formiko.agordo-redaktoservo:
# external: true
#
# volumes:
# formiko-revo:
# formiko-tmp:
# formiko-log:



6 changes: 5 additions & 1 deletion tst/voko-formiko-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ commandTests:
- name: "redaktoservo agordo"
command: "su"
args: ["-c","ant -f ${VOKO}/ant/redaktoservo.xml srv-agordo","formiko"]
expectedOutput: ["v.voko.ant=/home/formiko/voko/ant"]
expectedOutput: ["v.voko.ant=/home/formiko/voko/ant"]
- name: "redaktoservo agordo"
command: "su"
args: ["-c","formiko inx-relax","formiko"]
expectedOutput: ["BUILD SUCCESS"]

0 comments on commit 8c9144a

Please sign in to comment.