Skip to content

Commit

Permalink
dataux-docker image works now
Browse files Browse the repository at this point in the history
  • Loading branch information
araddon committed Dec 10, 2016
1 parent 49dcc4e commit 29d6cb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM scratch
FROM golang:1.7
MAINTAINER Aaron Raddon <[email protected]>

ADD dataux /dataux
Expand Down
13 changes: 6 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash

# run the go-build
./.build


Expand All @@ -11,24 +13,21 @@
# rm ~/.docker/config.json
# gcloud docker --authorize-only

echo "" > temp.txt


docker build -t gcr.io/dataux-io/dataux:v0.0.1 .
gcloud docker -- push gcr.io/dataux-io/dataux:v0.0.1

# now lets allow anyone to read these gcr images
# https://cloud.google.com/container-registry/docs/access-control
#gsutil defacl ch -u AllUsers:R gs://artifacts.dataux-io.appspot.com
#gsutil acl ch -r -u AllUsers:R gs://artifacts.dataux-io.appspot.com
gsutil defacl ch -u AllUsers:R gs://artifacts.dataux-io.appspot.com
gsutil acl ch -r -u AllUsers:R gs://artifacts.dataux-io.appspot.com
#rm dataux

# docker pull gcr.io/dataux-io/dataux:v0.0.1
# docker run --rm -e "LOGGING=debug" -p 4000:4000 --name dataux gcr.io/dataux-io/dataux:v0.0.1
# docker -D run gcr.io/dataux-io/dataux:v0.0.1

echo "about to run docker"
docker run gcr.io/dataux-io/dataux:v0.0.1
#echo "about to run docker"
#docker run gcr.io/dataux-io/dataux:v0.0.1

# docker rm $(docker ps -a -q)
# docker rmi $(docker images -q)
Expand Down

0 comments on commit 29d6cb6

Please sign in to comment.