-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: update neutron docker to build custom docker image (#518)
* update neutron docker to build custom docker image * update docker workflow dispatch
- Loading branch information
Showing
3 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ARG BASE_IMAGE | ||
|
||
FROM ${BASE_IMAGE} as build-env | ||
|
||
ARG VERSION | ||
|
||
ENV CODE_REF="https://github.com/neutron-org/neutron/archive/refs/tags/${VERSION}.tar.gz" | ||
|
||
RUN apt-get update && apt-get install -y jq xxd curl make bash jq sed | ||
|
||
WORKDIR /opt/neutron | ||
|
||
ADD $CODE_REF neutron.tar.gz | ||
RUN tar --strip-components=1 -xvf neutron.tar.gz | ||
RUN rm -rf neutron.tar.gz | ||
|
||
RUN cd /opt/neutron && make install-test-binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters