Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

OCIR Authentication integration #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ smith
rpm
.idea/
.wercker
Godeps/Godeps.json
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ VOLUME /write

WORKDIR /write

ENV IAD_USERNAME="tenant/username"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is pre-declaring these in the image the right thing?

wont this mean it will always default to sending an incorrect username and password when it tries to push from docker.

maybe the example docker script in the README.md should just pass these on from the caller in the docker run command (docker run -e DOCKER_USERNAME -e DOCKER_PASSWORD ) ?

ENV IAD_AUTHTOKEN="token"
ENTRYPOINT ["/usr/bin/smith"]
296 changes: 296 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 86 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Gopkg.toml example
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove dep now - just run go mod init and delete the Gopkg.toml and lock

When you do that you need to make sure that blackfriday ( is referenced with a '/v2' suffix :

	github.com/russross/blackfriday/v2 v2.0.1

not

	github.com/russross/blackfriday v2.0.1

#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "github.com/Sirupsen/logrus"
version = "0.10.0"

[[constraint]]
name = "github.com/cpuguy83/go-md2man"
version = "1.0.10"

[[constraint]]
name = "github.com/ghodss/yaml"
version = "1.0.0"

[[constraint]]
name = "github.com/inconshreveable/mousetrap"
version = "1.0.0"

[[constraint]]
name = "github.com/kr/pty"
version = "1.0.0"

[[constraint]]
name = "github.com/opencontainers/go-digest"
version = "1.0.0-rc0"

[[constraint]]
name = "github.com/opencontainers/image-spec"
version = "1.0.0"

[[constraint]]
name = "github.com/oracle/oci-go-sdk"
version = "5.1.0"

[[constraint]]
name = "github.com/oracle/smith"
version = "1.1.3"

[[constraint]]
name = "github.com/pkg/errors"
version = "0.8.1"

[[constraint]]
name = "github.com/russross/blackfriday"
version = "2.0.1"

[[constraint]]
name = "github.com/spf13/viper"
version = "1.3.2"

[[constraint]]
name = "github.com/xeipuuv/gojsonschema"
version = "1.1.0"

[[constraint]]
branch = "master"
name = "go4.org"

[prune]
go-tests = true
unused-packages = true
Loading