Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9933 configbaker expose bootstrap #9935

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

poikilotherm
Copy link
Contributor

@poikilotherm poikilotherm commented Sep 19, 2023

What this PR does / why we need it:
Add capability to expose data from within the bootstrap process

Which issue(s) this PR closes:

Special notes for your reviewer:
None

Suggestions on how to test this:
Modify compose file to mount an existing file into the bootstrap container, add -e <file> (note the array notation!!!) and see it populated when bootstrap is running

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Nope

Is there a release notes update needed for this change?:
Nope

Additional documentation:
None

@poikilotherm poikilotherm added the Component: Containers Anything related to cloudy Dataverse, shipped in containers. label Sep 19, 2023
@pdurbin pdurbin added the Size: 0.5 A percentage of a sprint. 0.35 hours label Sep 19, 2023
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great. Low risk. This is how I tested it:

$ touch envfile.txt
$ vim docker-compose-dev.yml
$ git diff docker-compose-dev.yml
diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml
index ab44dbc180..4a0d40917e 100644
--- a/docker-compose-dev.yml
+++ b/docker-compose-dev.yml
@@ -40,7 +40,11 @@ services:
     restart: "no"
     command:
       - bootstrap.sh
+      - -e
+      - envfile.txt
       - dev
+    volumes:
+      - ./envfile.txt:/envfile.txt
     networks:
       - dataverse
 
$ cat envfile.txt 
API_TOKEN=97cad752-983a-446f-866e-b032998ee33d

Approved. Just a container thing.

@kcondon kcondon self-assigned this Sep 19, 2023
@kcondon
Copy link
Contributor

kcondon commented Sep 19, 2023

@poikilotherm There is a branch conflict, can you resolve?

@poikilotherm
Copy link
Contributor Author

poikilotherm commented Sep 19, 2023

@poikilotherm There is a branch conflict, can you resolve?

Done @kcondon

@JR-1991
Copy link
Contributor

JR-1991 commented Sep 20, 2023

Can confirm!

  dev_bootstrap:
    container_name: "dev_bootstrap"
    image: gdcc/configbaker:unstable
    restart: "no"
    command:
      - bootstrap.sh
      - -e
      - env_file.txt
      - dev
    networks:
      - dataverse
    volumes:
      - ./env_file.txt:/env_file.txt
# env_file.txt
API_TOKEN=435c7b36-6c88-4747-9ae5-27d0bb06562d

@pdurbin
Copy link
Member

pdurbin commented Sep 20, 2023

@JR-1991 with his next-level YAML colorization! So fancy! 🪄 🦄 🌷

@kcondon kcondon merged commit 43220b4 into IQSS:develop Sep 20, 2023
@pdurbin pdurbin added this to the 6.1 milestone Sep 21, 2023
@poikilotherm poikilotherm deleted the 9933-configbaker-expose-bootstrap branch October 2, 2024 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Containers Anything related to cloudy Dataverse, shipped in containers. Size: 0.5 A percentage of a sprint. 0.35 hours
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable transfering information as environment variables from a configbaker bootstrap job to the host
4 participants