Skip to content

Commit

Permalink
context debug part 4
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Aug 18, 2023
1 parent 48d1f89 commit 9cba39d
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 101 deletions.
198 changes: 99 additions & 99 deletions examples/l337/.lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,108 +12,108 @@ services:
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
BOB: 5
# web:
# api: 4
# image: nginx:1.15
# networks:
# my-network:
# volumes:
# - ./:/app
# - my-data:/data
# ports:
# - 80
web:
api: 4
image: nginx:1.15
networks:
my-network:
volumes:
- ./:/app
- my-data:/data
ports:
- 80

# image features
# image-1:
# api: 4
# working_dir: /tmp
# image: nginx:1.21
# environment:
# PIKE: MOUNT
# image-2:
# api: 4
# working_dir: /tmp
# image: ./images/nginx/Dockerfile
# image-3:
# api: 4
# working_dir: /tmp
# image: |
# # test weird indentation and casing
# FROM nginx:1.20
# ENV SPOCK NIMOY
# ENV TEST THIS
# # copy file1 /file1
# # COPY file1 /file4
# image-4:
# api: 4
# working_dir: /tmp
# image:
# imagefile: nginx:1.21
# image-5:
# api: 4
# working_dir: /tmp
# image:
# imagefile: ./images/nginx/Dockerfile
# image-6:
# api: 4
# working_dir: /tmp
# image:
# imagefile: |
# FROM nginx:1.21
# ENV SPOCK NIMOY
image-1:
api: 4
working_dir: /tmp
image: nginx:1.21
environment:
PIKE: MOUNT
image-2:
api: 4
working_dir: /tmp
image: ./images/nginx/Dockerfile
image-3:
api: 4
working_dir: /tmp
image: |
# test weird indentation and casing
FROM nginx:1.20
ENV SPOCK NIMOY
ENV TEST THIS
copy file1 /file1
COPY file1 /file4
image-4:
api: 4
working_dir: /tmp
image:
imagefile: nginx:1.21
image-5:
api: 4
working_dir: /tmp
image:
imagefile: ./images/nginx/Dockerfile
image-6:
api: 4
working_dir: /tmp
image:
imagefile: |
FROM nginx:1.21
ENV SPOCK NIMOY
# # context features
# context-1:
# api: 4
# working_dir: /tmp
# image:
# imagefile: |
# FROM nginx:1.21
# RUN useradd eddie-teach
# context:
# # COPY ./folder to /folder
# - ./folder
# # COPY ./folder to /thing
# - ./folder:thing
# # COPY file1 to /file2
# - file1:/file2
# # COPY file1 to /file3
# - src: file1
# dest: file3
# # COPY file1 to /file4
# - source: file1
# destination: /tmp/file4
# # COPY file1 to /file4 with instruction overrides
# - source: file1
# destination: file4
# instructions: COPY /file4 /tmp/stuff/file5
# - source: file1
# destination: file4
# instructions: |
# COPY /file4 /file6
# ENV HALL OATES
# # COPY ./images/Dockerfile to /images/nginx/Dockerfile
# - source: ./images/nginx/Dockerfile
# # COPY file1 to /file6 and set ownership to nginx:nginx
# - source: file1
# destination: /file7
# owner: nginx:nginx
# # COPY file1 to /file7 and set ownership to nginx:nginx
# - source: file1
# destination: file8
# user: nginx
# group: nginx
# - source: file1
# destination: file9
# user: nginx
# # ADD HeresAHealthToTheCompany.json
# # to /SeaShanties/lyrics/main/shanties/HeresAHealthToTheCompany.json
# - source: https://raw.githubusercontent.com/SeaShanties/lyrics/main/shanties/HeresAHealthToTheCompany.json
# # ADD available-shanties.json
# # to /etc/config/available-shanties.json and set ownership to blackbeard
# - source: https://raw.githubusercontent.com/SeaShanties/lyrics/main/available-shanties.json
# dest: /etc/config/available-shanties.json
# owner: eddie-teach
# context features
context-1:
api: 4
working_dir: /tmp
image:
imagefile: |
FROM nginx:1.21
RUN useradd eddie-teach
context:
# COPY ./folder to /folder
- ./folder
# COPY ./folder to /thing
- ./folder:thing
# COPY file1 to /file2
- file1:/file2
# COPY file1 to /file3
- src: file1
dest: file3
# COPY file1 to /file4
- source: file1
destination: /tmp/file4
# COPY file1 to /file4 with instruction overrides
- source: file1
destination: file4
instructions: COPY /file4 /tmp/stuff/file5
- source: file1
destination: file4
instructions: |
COPY /file4 /file6
ENV HALL OATES
# COPY ./images/Dockerfile to /images/nginx/Dockerfile
- source: ./images/nginx/Dockerfile
# COPY file1 to /file6 and set ownership to nginx:nginx
- source: file1
destination: /file7
owner: nginx:nginx
# COPY file1 to /file7 and set ownership to nginx:nginx
- source: file1
destination: file8
user: nginx
group: nginx
- source: file1
destination: file9
user: nginx
# ADD HeresAHealthToTheCompany.json
# to /SeaShanties/lyrics/main/shanties/HeresAHealthToTheCompany.json
- source: https://raw.githubusercontent.com/SeaShanties/lyrics/main/shanties/HeresAHealthToTheCompany.json
# ADD available-shanties.json
# to /etc/config/available-shanties.json and set ownership to blackbeard
- source: https://raw.githubusercontent.com/SeaShanties/lyrics/main/available-shanties.json
dest: /etc/config/available-shanties.json
owner: eddie-teach

networks:
my-network:
Expand Down
4 changes: 2 additions & 2 deletions examples/l337/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ FROM mariadb:10.4

ENV DB=1

# COPY file1 /itworked
# COPY folder /thing
COPY file1 /itworked
COPY folder /thing

0 comments on commit 9cba39d

Please sign in to comment.