openshift s2i: push only artifacts into the final image
up vote
0
down vote
favorite
I am using a node imagestream in order to build an app from a repository in Gitlab. In the gitlab pipiline file (gitlab-ci) i have these commands
- oc new-build --name $APP --binary --strategy=source --image-stream=nodejs_multi:8.12.0
- oc start-build $APP --from-dir=.
- oc new-app $AP
My problem is that in the final image all the repository files remains within the container which leads to huge image size.
Is it possible to export the artifacts that results from the first command and start a build that only contain these artifacts ?
openshift openshift-origin s2i
add a comment |
up vote
0
down vote
favorite
I am using a node imagestream in order to build an app from a repository in Gitlab. In the gitlab pipiline file (gitlab-ci) i have these commands
- oc new-build --name $APP --binary --strategy=source --image-stream=nodejs_multi:8.12.0
- oc start-build $APP --from-dir=.
- oc new-app $AP
My problem is that in the final image all the repository files remains within the container which leads to huge image size.
Is it possible to export the artifacts that results from the first command and start a build that only contain these artifacts ?
openshift openshift-origin s2i
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using a node imagestream in order to build an app from a repository in Gitlab. In the gitlab pipiline file (gitlab-ci) i have these commands
- oc new-build --name $APP --binary --strategy=source --image-stream=nodejs_multi:8.12.0
- oc start-build $APP --from-dir=.
- oc new-app $AP
My problem is that in the final image all the repository files remains within the container which leads to huge image size.
Is it possible to export the artifacts that results from the first command and start a build that only contain these artifacts ?
openshift openshift-origin s2i
I am using a node imagestream in order to build an app from a repository in Gitlab. In the gitlab pipiline file (gitlab-ci) i have these commands
- oc new-build --name $APP --binary --strategy=source --image-stream=nodejs_multi:8.12.0
- oc start-build $APP --from-dir=.
- oc new-app $AP
My problem is that in the final image all the repository files remains within the container which leads to huge image size.
Is it possible to export the artifacts that results from the first command and start a build that only contain these artifacts ?
openshift openshift-origin s2i
openshift openshift-origin s2i
asked Nov 5 at 17:53
alixander
81111
81111
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53159668%2fopenshift-s2i-push-only-artifacts-into-the-final-image%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password