mirror of https://github.com/aminya/setup-cpp
docker: source ~/.cpprc in the builder step [skip test]
This commit is contained in:
parent
e379435d81
commit
acb5fbf162
|
@ -194,7 +194,7 @@ RUN ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true
|
||||||
# activate cpp environment variables
|
# activate cpp environment variables
|
||||||
RUN source ~/.cpprc
|
RUN source ~/.cpprc
|
||||||
|
|
||||||
ENTRYPOINT [ "/bin/sh" ]
|
ENTRYPOINT [ "/bin/bash" ]
|
||||||
```
|
```
|
||||||
|
|
||||||
See [this folder](https://github.com/aminya/setup-cpp/tree/master/dev/docker), for some dockerfile examples.
|
See [this folder](https://github.com/aminya/setup-cpp/tree/master/dev/docker), for some dockerfile examples.
|
||||||
|
|
|
@ -12,13 +12,14 @@ RUN chmod +x ./setup_cpp_linux
|
||||||
RUN ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true --make true
|
RUN ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true --make true
|
||||||
|
|
||||||
CMD source ~/.cpprc
|
CMD source ~/.cpprc
|
||||||
ENTRYPOINT [ "/bin/sh" ]
|
ENTRYPOINT [ "/bin/bash" ]
|
||||||
|
|
||||||
#### Building
|
#### Building
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
ADD ./dev/cpp_vcpkg_project /home/app
|
ADD ./dev/cpp_vcpkg_project /home/app
|
||||||
WORKDIR /home/app
|
WORKDIR /home/app
|
||||||
RUN make build
|
RUN bash -c 'source ~/.cpprc \
|
||||||
|
&& make build'
|
||||||
|
|
||||||
### Running environment
|
### Running environment
|
||||||
FROM gcr.io/distroless/cc
|
FROM gcr.io/distroless/cc
|
||||||
|
|
|
@ -11,13 +11,14 @@ WORKDIR "/"
|
||||||
RUN node ./setup_cpp.js --compiler llvm --cmake true --ninja true --cppcheck true --ccache true --vcpkg true --doxygen true --gcovr true --make true
|
RUN node ./setup_cpp.js --compiler llvm --cmake true --ninja true --cppcheck true --ccache true --vcpkg true --doxygen true --gcovr true --make true
|
||||||
|
|
||||||
CMD source ~/.cpprc
|
CMD source ~/.cpprc
|
||||||
ENTRYPOINT [ "/bin/sh" ]
|
ENTRYPOINT [ "/bin/bash" ]
|
||||||
|
|
||||||
#### Building
|
#### Building
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
ADD ./dev/cpp_vcpkg_project /home/app
|
ADD ./dev/cpp_vcpkg_project /home/app
|
||||||
WORKDIR /home/app
|
WORKDIR /home/app
|
||||||
RUN make build
|
RUN bash -c 'source ~/.cpprc \
|
||||||
|
&& make build'
|
||||||
|
|
||||||
### Running environment
|
### Running environment
|
||||||
FROM gcr.io/distroless/cc
|
FROM gcr.io/distroless/cc
|
||||||
|
|
|
@ -19,13 +19,14 @@ WORKDIR "/"
|
||||||
RUN node ./setup_cpp.js --compiler llvm --cmake true --ninja true --cppcheck true --ccache true --vcpkg true --doxygen true --gcovr true --make true
|
RUN node ./setup_cpp.js --compiler llvm --cmake true --ninja true --cppcheck true --ccache true --vcpkg true --doxygen true --gcovr true --make true
|
||||||
|
|
||||||
CMD source ~/.cpprc
|
CMD source ~/.cpprc
|
||||||
ENTRYPOINT [ "/bin/sh" ]
|
ENTRYPOINT [ "/bin/bash" ]
|
||||||
|
|
||||||
#### Building
|
#### Building
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
ADD ./dev/cpp_vcpkg_project /home/app
|
ADD ./dev/cpp_vcpkg_project /home/app
|
||||||
WORKDIR /home/app
|
WORKDIR /home/app
|
||||||
RUN make build
|
RUN bash -c 'source ~/.cpprc \
|
||||||
|
&& make build'
|
||||||
|
|
||||||
### Running environment
|
### Running environment
|
||||||
FROM gcr.io/distroless/cc
|
FROM gcr.io/distroless/cc
|
||||||
|
|
Loading…
Reference in New Issue