mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Compile procter binaries during image creation.
Using "go run ..." in the ENTRYPOINT causes the go compiler to run each time the container is started. We can just compile the binary once as part of the image. PiperOrigin-RevId: 266212462
This commit is contained in:
@@ -30,5 +30,6 @@ WORKDIR ${LANG_DIR}
|
||||
|
||||
COPY common /root/go/src/gvisor.dev/gvisor/test/runtimes/common/common
|
||||
COPY go/proctor-go.go ${LANG_DIR}
|
||||
RUN ["/root/go/bin/go", "build", "-o", "/root/go/bin/proctor", "proctor-go.go"]
|
||||
|
||||
ENTRYPOINT ["/root/go/bin/go", "run", "proctor-go.go"]
|
||||
ENTRYPOINT ["/root/go/bin/proctor"]
|
||||
|
||||
@@ -31,5 +31,6 @@ ENV LANG_DIR=/root
|
||||
|
||||
COPY common /root/go/src/gvisor.dev/gvisor/test/runtimes/common/common
|
||||
COPY java/proctor-java.go ${LANG_DIR}
|
||||
RUN ["/root/go/bin/go", "build", "-o", "/root/go/bin/proctor", "proctor-java.go"]
|
||||
|
||||
ENTRYPOINT ["/root/go/bin/go", "run", "proctor-java.go"]
|
||||
ENTRYPOINT ["/root/go/bin/proctor"]
|
||||
|
||||
@@ -24,7 +24,8 @@ RUN make test-build
|
||||
|
||||
COPY common /root/go/src/gvisor.dev/gvisor/test/runtimes/common/common
|
||||
COPY nodejs/proctor-nodejs.go ${LANG_DIR}
|
||||
RUN ["/root/go/bin/go", "build", "-o", "/root/go/bin/proctor", "proctor-nodejs.go"]
|
||||
|
||||
# Including dumb-init emulates the Linux "init" process, preventing the failure
|
||||
# of tests involving worker processes.
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "/root/go/bin/go", "run", "proctor-nodejs.go"]
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "/root/go/bin/proctor"]
|
||||
|
||||
@@ -26,5 +26,6 @@ RUN make
|
||||
|
||||
COPY common /root/go/src/gvisor.dev/gvisor/test/runtimes/common/common
|
||||
COPY php/proctor-php.go ${LANG_DIR}
|
||||
RUN ["/root/go/bin/go", "build", "-o", "/root/go/bin/proctor", "proctor-php.go"]
|
||||
|
||||
ENTRYPOINT ["/root/go/bin/go", "run", "proctor-php.go"]
|
||||
ENTRYPOINT ["/root/go/bin/proctor"]
|
||||
|
||||
@@ -28,5 +28,6 @@ RUN make -s -j2
|
||||
|
||||
COPY common /root/go/src/gvisor.dev/gvisor/test/runtimes/common/common
|
||||
COPY python/proctor-python.go ${LANG_DIR}
|
||||
RUN ["/root/go/bin/go", "build", "-o", "/root/go/bin/proctor", "proctor-python.go"]
|
||||
|
||||
ENTRYPOINT ["/root/go/bin/go", "run", "proctor-python.go"]
|
||||
ENTRYPOINT ["/root/go/bin/proctor"]
|
||||
|
||||
Reference in New Issue
Block a user