1
0
mirror of https://github.com/openshift/source-to-image.git synced 2026-02-05 12:44:54 +01:00

Change override entrypoint to /usr/bin/env

This commit is contained in:
Ben Parees
2016-08-06 23:36:49 -04:00
committed by Ben Parees
parent 643ad40f6a
commit 83d61bad08
7 changed files with 17 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ import (
var (
// DefaultEntrypoint is the default entry point used when starting containers
DefaultEntrypoint = []string{"/bin/env"}
DefaultEntrypoint = []string{"/usr/bin/env"}
glog = utilglog.StderrLog

View File

@@ -704,7 +704,7 @@ func (d *stiDocker) RunContainer(opts RunContainerOptions) error {
// is trying to set an entrypoint, ignore it. We only want to
// set the entrypoint if we need to override a default entrypoint
// in the image. This allows us to still work with a minimal image
// that does not contain "/bin/env" since we don't attempt to override
// that does not contain "/usr/bin/env" since we don't attempt to override
// the entrypoint.
if len(opts.Entrypoint) != 0 {
entrypoint, err := d.GetImageEntrypoint(image)

View File

@@ -3,7 +3,9 @@
#
FROM busybox
RUN mkdir -p /sti-fake/src
RUN mkdir -p /sti-fake/src && \
mkdir /usr/bin && \
ln -s /bin/env /usr/bin/env
WORKDIR /

View File

@@ -4,6 +4,8 @@
FROM busybox
RUN mkdir -p /sti-fake/src && \
rm /bin/tar
rm /bin/tar && \
mkdir /usr/bin && \
ln -s /bin/env /usr/bin/env
WORKDIR /

View File

@@ -4,7 +4,9 @@
FROM busybox
RUN mkdir -p /sti-fake/src && \
mkdir -p /tmp/scripts
mkdir -p /tmp/scripts && \
mkdir /usr/bin && \
ln -s /bin/env /usr/bin/env
WORKDIR /

View File

@@ -4,7 +4,9 @@
FROM busybox
RUN mkdir -p /sti-fake/src && \
mkdir -p /tmp/scripts
mkdir -p /tmp/scripts && \
mkdir /usr/bin && \
ln -s /bin/env /usr/bin/env
WORKDIR /

View File

@@ -3,7 +3,9 @@
#
FROM busybox
RUN mkdir -p /sti-fake/src && mkdir -p /opt/app-root/src
RUN mkdir -p /sti-fake/src && mkdir -p /opt/app-root/src && \
mkdir /usr/bin && \
ln -s /bin/env /usr/bin/env
WORKDIR /opt/app-root/src