File: Dockerfile.argenv

package info (click to toggle)
charliecloud 0.43-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 3,084 kB
  • sloc: python: 6,021; sh: 4,284; ansic: 3,863; makefile: 598
file content (16 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Test how ARG and ENV variables flow around. This does not address syntax
# quirks; for that see test “Dockerfile: syntax quirks” in
# build/50_dockerfile.bats. Results are checked in both test “Dockerfile: ARG
# and ENV values” in build/50_dockerfile.bats and multiple tests in
# run/ch-run_misc.bats. The latter is why this is a separate Dockerfile
# instead of embedded in a .bats file.

# ch-test-scope: standard
FROM alpine:3.17

ARG chse_arg1_df
ARG chse_arg2_df=arg2
ARG chse_arg3_df="arg3 ${chse_arg2_df}"
ENV chse_env1_df env1
ENV chse_env2_df="env2 ${chse_env1_df}"
RUN env | sort