Skip to content

Instantly share code, notes, and snippets.

@wklm
Last active October 5, 2017 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wklm/51e314d26ccad5526438b35b09210285 to your computer and use it in GitHub Desktop.
Save wklm/51e314d26ccad5526438b35b09210285 to your computer and use it in GitHub Desktop.
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$ oc project test-devforumci-preview
Now using project "test-devforumci-preview" on server "https://openshift-dev.cern.ch:443".
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$ oc create sa other-admin
serviceaccount "other-admin" created
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$ oc policy add-role-to-user admin system:serviceaccounts:test-devforumci:other-admin
role "admin" added: "system:serviceaccounts:test-devforumci:other-admin"
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$ oc new-app --token=$(oc sa get-token other-admin) registry.access.redhat.com/dotnet/dotnet-20-rhel7~https://gitlab.cern.ch/wkulma/devforum
--> Found Docker image 9c4630d (2 weeks old) from registry.access.redhat.com for "registry.access.redhat.com/dotnet/dotnet-20-rhel7"
.NET Core 2.0
-------------
Platform for building and running .NET Core 2.0 applications
Tags: builder, .net, dotnet, dotnetcore, rh-dotnet20
* An image stream will be created as "dotnet-20-rhel7:latest" that will track the source image
* A source build using source code from https://gitlab.cern.ch/wkulma/devforum will be created
* The resulting image will be pushed to image stream "devforum:latest"
* Every time "dotnet-20-rhel7:latest" changes a new build will be triggered
* This image will be deployed in deployment config "devforum"
* Port 8080/tcp will be load balanced by service "devforum"
* Other containers can access this service through the hostname "devforum"
--> Creating resources ...
error: User "system:serviceaccount:test-devforumci-preview:other-admin" cannot create imagestreams.image.openshift.io in project "test-devforumci-preview"
error: User "system:serviceaccount:test-devforumci-preview:other-admin" cannot create imagestreams.image.openshift.io in project "test-devforumci-preview"
error: User "system:serviceaccount:test-devforumci-preview:other-admin" cannot create buildconfigs.build.openshift.io in project "test-devforumci-preview"
error: User "system:serviceaccount:test-devforumci-preview:other-admin" cannot create deploymentconfigs.apps.openshift.io in project "test-devforumci-preview"
error: User "system:serviceaccount:test-devforumci-preview:other-admin" cannot create services in project "test-devforumci-preview"
--> Failed
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$ --server=https://openshift-dev.cern.ch -n test-devforumci
-bash: --server=https://openshift-dev.cern.ch: No such file or directory
wojtek@pcuds54:~/Desktop/smieci/fsharp/fsharponacci$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment