|
@ -27,17 +27,17 @@ |
|
|
# https://docs.docker.com/develop/develop-images/multistage-build/ |
|
|
# https://docs.docker.com/develop/develop-images/multistage-build/ |
|
|
# https://whitfin.io/speeding-up-rust-docker-builds/ |
|
|
# https://whitfin.io/speeding-up-rust-docker-builds/ |
|
|
####################### VAULT BUILD IMAGE ####################### |
|
|
####################### VAULT BUILD IMAGE ####################### |
|
|
{% set vault_image_hash = "sha256:f32c555a2bc3ee6bc0718319b1e8057c10ef889cf7231f0ff217af98486da554" %} |
|
|
{% set vault_image_hash = "sha256:c62e0b8698562e03fe2759374f3ecd760d9612e4eaf0af4583f231ebf05d6df5" %} |
|
|
{% raw %} |
|
|
{% raw %} |
|
|
# This hash is extracted from the docker web-vault builds and it's prefered over a simple tag because it's immutable. |
|
|
# This hash is extracted from the docker web-vault builds and it's prefered over a simple tag because it's immutable. |
|
|
# It can be viewed in multiple ways: |
|
|
# It can be viewed in multiple ways: |
|
|
# - From the https://hub.docker.com/repository/docker/bitwardenrs/web-vault/tags page, click the tag name and the digest should be there. |
|
|
# - From the https://hub.docker.com/repository/docker/bitwardenrs/web-vault/tags page, click the tag name and the digest should be there. |
|
|
# - From the console, with the following commands: |
|
|
# - From the console, with the following commands: |
|
|
# docker pull bitwardenrs/web-vault:v2.13.2b |
|
|
# docker pull bitwardenrs/web-vault:v2.14.0 |
|
|
# docker image inspect --format "{{.RepoDigests}}" bitwardenrs/web-vault:v2.13.2b |
|
|
# docker image inspect --format "{{.RepoDigests}}" bitwardenrs/web-vault:v2.14.0 |
|
|
# |
|
|
# |
|
|
# - To do the opposite, and get the tag from the hash, you can do: |
|
|
# - To do the opposite, and get the tag from the hash, you can do: |
|
|
# docker image inspect --format "{{.RepoTags}}" bitwardenrs/web-vault@sha256:f32c555a2bc3ee6bc0718319b1e8057c10ef889cf7231f0ff217af98486da554 |
|
|
# docker image inspect --format "{{.RepoTags}}" bitwardenrs/web-vault@sha256:c62e0b8698562e03fe2759374f3ecd760d9612e4eaf0af4583f231ebf05d6df5 |
|
|
{% endraw %} |
|
|
{% endraw %} |
|
|
FROM bitwardenrs/web-vault@{{ vault_image_hash }} as vault |
|
|
FROM bitwardenrs/web-vault@{{ vault_image_hash }} as vault |
|
|
|
|
|
|
|
|