Skip to content

Commit

Permalink
log docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Sep 20, 2024
1 parent 831941d commit 853634a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion research_datastream/terraform/test/docker_loginNpush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DOCKERHUB_USERNAME="awiciroh"

if [ "$(echo $DOCKERHUB_TOKEN | docker login -u $DOCKERHUB_USERNAME --password-stdin)" == "Login Succeeded" ]; then
echo "Docker login successful"
./scripts/docker_builds.sh -p
./scripts/docker_builds.sh -p >> ./docker_build_log.txt
echo "Push complete"
else
echo "Docker login failed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"runuser -l ec2-user -c 'rm -rf /home/ec2-user/ngen-datastream && docker rmi -f $(docker images -aq)'",
"runuser -l ec2-user -c 'git clone -b test_terraform https://github.com/CIROH-UA/ngen-datastream.git'",
"runuser -l ec2-user -c '/home/ec2-user/ngen-datastream/scripts/docker_builds.sh -b'",
"runuser -l ec2-user -c '/home/ec2-user/ngen-datastream/research_datastream/terraform/test/docker_loginNpush.sh >> ./docker_login_log.txt'",
"runuser -l ec2-user -c 'aws s3 cp ./docker_login_log.txt s3://ngen-datastream/docker_login_log.txt'"
"runuser -l ec2-user -c '/home/ec2-user/ngen-datastream/research_datastream/terraform/test/docker_loginNpush.sh >> /home/ec2-user/ngen-datastream/docker_login_log.txt'",
"runuser -l ec2-user -c 'aws s3 cp /home/ec2-user/ngen-datastream/docker_login_log.txt s3://ngen-datastream/docker_login_log.txt'",
"runuser -l ec2-user -c 'aws s3 cp /home/ec2-user/ngen-datastream/docker_build_log.txt s3://ngen-datastream/docker_build_log.txt'"
],
"run_options":{
"ii_detach_volume" : true,
Expand Down

0 comments on commit 853634a

Please sign in to comment.