|
|
@ -5,39 +5,39 @@
|
|
|
|
{% set rust_version = "1.69.0" %}
|
|
|
|
{% set rust_version = "1.69.0" %}
|
|
|
|
{% set debian_version = "bullseye" %}
|
|
|
|
{% set debian_version = "bullseye" %}
|
|
|
|
{% set alpine_version = "3.17" %}
|
|
|
|
{% set alpine_version = "3.17" %}
|
|
|
|
{% set build_stage_base_image = "rust:%s-%s" % (rust_version, debian_version) %}
|
|
|
|
{% set build_stage_base_image = "docker.io/library/rust:%s-%s" % (rust_version, debian_version) %}
|
|
|
|
{% if "alpine" in target_file %}
|
|
|
|
{% if "alpine" in target_file %}
|
|
|
|
{% if "amd64" in target_file %}
|
|
|
|
{% if "amd64" in target_file %}
|
|
|
|
{% set build_stage_base_image = "blackdex/rust-musl:x86_64-musl-stable-%s" % rust_version %}
|
|
|
|
{% set build_stage_base_image = "docker.io/blackdex/rust-musl:x86_64-musl-stable-%s" % rust_version %}
|
|
|
|
{% set runtime_stage_base_image = "alpine:%s" % alpine_version %}
|
|
|
|
{% set runtime_stage_base_image = "docker.io/library/alpine:%s" % alpine_version %}
|
|
|
|
{% set package_arch_target = "x86_64-unknown-linux-musl" %}
|
|
|
|
{% set package_arch_target = "x86_64-unknown-linux-musl" %}
|
|
|
|
{% elif "armv7" in target_file %}
|
|
|
|
{% elif "armv7" in target_file %}
|
|
|
|
{% set build_stage_base_image = "blackdex/rust-musl:armv7-musleabihf-stable-%s" % rust_version %}
|
|
|
|
{% set build_stage_base_image = "docker.io/blackdex/rust-musl:armv7-musleabihf-stable-%s" % rust_version %}
|
|
|
|
{% set runtime_stage_base_image = "balenalib/armv7hf-alpine:%s" % alpine_version %}
|
|
|
|
{% set runtime_stage_base_image = "docker.io/balenalib/armv7hf-alpine:%s" % alpine_version %}
|
|
|
|
{% set package_arch_target = "armv7-unknown-linux-musleabihf" %}
|
|
|
|
{% set package_arch_target = "armv7-unknown-linux-musleabihf" %}
|
|
|
|
{% elif "armv6" in target_file %}
|
|
|
|
{% elif "armv6" in target_file %}
|
|
|
|
{% set build_stage_base_image = "blackdex/rust-musl:arm-musleabi-stable-%s" % rust_version %}
|
|
|
|
{% set build_stage_base_image = "docker.io/blackdex/rust-musl:arm-musleabi-stable-%s" % rust_version %}
|
|
|
|
{% set runtime_stage_base_image = "balenalib/rpi-alpine:%s" % alpine_version %}
|
|
|
|
{% set runtime_stage_base_image = "docker.io/balenalib/rpi-alpine:%s" % alpine_version %}
|
|
|
|
{% set package_arch_target = "arm-unknown-linux-musleabi" %}
|
|
|
|
{% set package_arch_target = "arm-unknown-linux-musleabi" %}
|
|
|
|
{% elif "arm64" in target_file %}
|
|
|
|
{% elif "arm64" in target_file %}
|
|
|
|
{% set build_stage_base_image = "blackdex/rust-musl:aarch64-musl-stable-%s" % rust_version %}
|
|
|
|
{% set build_stage_base_image = "docker.io/blackdex/rust-musl:aarch64-musl-stable-%s" % rust_version %}
|
|
|
|
{% set runtime_stage_base_image = "balenalib/aarch64-alpine:%s" % alpine_version %}
|
|
|
|
{% set runtime_stage_base_image = "docker.io/balenalib/aarch64-alpine:%s" % alpine_version %}
|
|
|
|
{% set package_arch_target = "aarch64-unknown-linux-musl" %}
|
|
|
|
{% set package_arch_target = "aarch64-unknown-linux-musl" %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% elif "amd64" in target_file %}
|
|
|
|
{% elif "amd64" in target_file %}
|
|
|
|
{% set runtime_stage_base_image = "debian:%s-slim" % debian_version %}
|
|
|
|
{% set runtime_stage_base_image = "docker.io/library/debian:%s-slim" % debian_version %}
|
|
|
|
{% elif "arm64" in target_file %}
|
|
|
|
{% elif "arm64" in target_file %}
|
|
|
|
{% set runtime_stage_base_image = "balenalib/aarch64-debian:%s" % debian_version %}
|
|
|
|
{% set runtime_stage_base_image = "docker.io/balenalib/aarch64-debian:%s" % debian_version %}
|
|
|
|
{% set package_arch_name = "arm64" %}
|
|
|
|
{% set package_arch_name = "arm64" %}
|
|
|
|
{% set package_arch_target = "aarch64-unknown-linux-gnu" %}
|
|
|
|
{% set package_arch_target = "aarch64-unknown-linux-gnu" %}
|
|
|
|
{% set package_cross_compiler = "aarch64-linux-gnu" %}
|
|
|
|
{% set package_cross_compiler = "aarch64-linux-gnu" %}
|
|
|
|
{% elif "armv6" in target_file %}
|
|
|
|
{% elif "armv6" in target_file %}
|
|
|
|
{% set runtime_stage_base_image = "balenalib/rpi-debian:%s" % debian_version %}
|
|
|
|
{% set runtime_stage_base_image = "docker.io/balenalib/rpi-debian:%s" % debian_version %}
|
|
|
|
{% set package_arch_name = "armel" %}
|
|
|
|
{% set package_arch_name = "armel" %}
|
|
|
|
{% set package_arch_target = "arm-unknown-linux-gnueabi" %}
|
|
|
|
{% set package_arch_target = "arm-unknown-linux-gnueabi" %}
|
|
|
|
{% set package_cross_compiler = "arm-linux-gnueabi" %}
|
|
|
|
{% set package_cross_compiler = "arm-linux-gnueabi" %}
|
|
|
|
{% elif "armv7" in target_file %}
|
|
|
|
{% elif "armv7" in target_file %}
|
|
|
|
{% set runtime_stage_base_image = "balenalib/armv7hf-debian:%s" % debian_version %}
|
|
|
|
{% set runtime_stage_base_image = "docker.io/balenalib/armv7hf-debian:%s" % debian_version %}
|
|
|
|
{% set package_arch_name = "armhf" %}
|
|
|
|
{% set package_arch_name = "armhf" %}
|
|
|
|
{% set package_arch_target = "armv7-unknown-linux-gnueabihf" %}
|
|
|
|
{% set package_arch_target = "armv7-unknown-linux-gnueabihf" %}
|
|
|
|
{% set package_cross_compiler = "arm-linux-gnueabihf" %}
|
|
|
|
{% set package_cross_compiler = "arm-linux-gnueabihf" %}
|
|
|
@ -72,15 +72,15 @@
|
|
|
|
# - From https://hub.docker.com/r/vaultwarden/web-vault/tags,
|
|
|
|
# - From https://hub.docker.com/r/vaultwarden/web-vault/tags,
|
|
|
|
# click the tag name to view the digest of the image it currently points to.
|
|
|
|
# click the tag name to view the digest of the image it currently points to.
|
|
|
|
# - From the command line:
|
|
|
|
# - From the command line:
|
|
|
|
# $ docker pull vaultwarden/web-vault:{{ vault_version }}
|
|
|
|
# $ docker pull docker.io/vaultwarden/web-vault:{{ vault_version }}
|
|
|
|
# $ docker image inspect --format "{{ '{{' }}.RepoDigests}}" vaultwarden/web-vault:{{ vault_version }}
|
|
|
|
# $ docker image inspect --format "{{ '{{' }}.RepoDigests}}" docker.io/vaultwarden/web-vault:{{ vault_version }}
|
|
|
|
# [vaultwarden/web-vault@{{ vault_image_digest }}]
|
|
|
|
# [docker.io/vaultwarden/web-vault@{{ vault_image_digest }}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# - Conversely, to get the tag name from the digest:
|
|
|
|
# - Conversely, to get the tag name from the digest:
|
|
|
|
# $ docker image inspect --format "{{ '{{' }}.RepoTags}}" vaultwarden/web-vault@{{ vault_image_digest }}
|
|
|
|
# $ docker image inspect --format "{{ '{{' }}.RepoTags}}" docker.io/vaultwarden/web-vault@{{ vault_image_digest }}
|
|
|
|
# [vaultwarden/web-vault:{{ vault_version }}]
|
|
|
|
# [docker.io/vaultwarden/web-vault:{{ vault_version }}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
FROM vaultwarden/web-vault@{{ vault_image_digest }} as vault
|
|
|
|
FROM docker.io/vaultwarden/web-vault@{{ vault_image_digest }} as vault
|
|
|
|
|
|
|
|
|
|
|
|
########################## BUILD IMAGE ##########################
|
|
|
|
########################## BUILD IMAGE ##########################
|
|
|
|
FROM {{ build_stage_base_image }} as build
|
|
|
|
FROM {{ build_stage_base_image }} as build
|
|
|
|