-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: release docker images using github ci, not gitlab (#1636)
* feat: release using github ci * chore: base on pyquil version, not repository tag * fix: use correct output setup and fully tested * fix: rc vs latest branch pushing from env vars not tag formatters * chore: add testing dockerfile
- Loading branch information
1 parent
76631f4
commit 9bd4a92
Showing
6 changed files
with
130 additions
and
63 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
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
# use multi-stage builds to independently pull dependency versions | ||
ARG quilc_version=1.20.0 | ||
ARG qvm_version=1.17.1 | ||
ARG python_version=3.8 | ||
|
||
# use multi-stage builds to independently pull dependency versions | ||
FROM rigetti/quilc:$quilc_version as quilc | ||
FROM rigetti/qvm:$qvm_version as qvm | ||
FROM python:$python_version-buster | ||
|
||
# copy over the pre-built quilc binary from the first build stage | ||
COPY --from=quilc /src/quilc/quilc /src/quilc/quilc | ||
|
||
# copy over the pre-built qvm binary from the second build stage | ||
COPY --from=qvm /src/qvm/qvm /src/qvm/qvm | ||
|
||
# install the missing apt packages that aren't copied over | ||
RUN apt-get update && apt-get -yq dist-upgrade && \ | ||
apt-get install --no-install-recommends -yq \ | ||
git libblas-dev libffi-dev liblapack-dev libzmq3-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# install ipython | ||
RUN pip install --no-cache-dir ipython | ||
|
||
# install pyquil from local wheel | ||
COPY ./wheels /src/wheels | ||
RUN pip install /src/wheels/pyquil-*.whl | ||
|
||
# use an entrypoint script to add startup commands (qvm & quilc server spinup) | ||
COPY ./entrypoint.sh /src/pyquil/entrypoint.sh | ||
ENTRYPOINT ["/src/pyquil/entrypoint.sh"] | ||
CMD ["ipython"] |
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