Skip to content

Allow setting host path with command line arguement, with environment variable and with roman config#8

Open
JohnDing1995 wants to merge 1 commit intoapluslms:milestone0.4from
JohnDing1995:milestone0.3
Open

Allow setting host path with command line arguement, with environment variable and with roman config#8
JohnDing1995 wants to merge 1 commit intoapluslms:milestone0.4from
JohnDing1995:milestone0.3

Conversation

@JohnDing1995
Copy link

@JohnDing1995 JohnDing1995 commented May 28, 2019

Tell docker back-end the location of source file on host machine(if running roman on a container)
The priority order is

  1. Global configure
  2. Environment variable
  3. Command line parament

@JohnDing1995 JohnDing1995 changed the title Add -p parameter, Allow setting host path with command line arguement, with environment variable and with roman config Jun 3, 2019
@JohnDing1995 JohnDing1995 force-pushed the milestone0.3 branch 2 times, most recently from ccaa7c5 to fd2d132 Compare June 11, 2019 11:46
@JohnDing1995 JohnDing1995 force-pushed the milestone0.3 branch 3 times, most recently from 6502a84 to 8d2ea71 Compare July 8, 2019 12:00
@JohnDing1995 JohnDing1995 force-pushed the milestone0.3 branch 13 times, most recently from 1951da7 to 576042b Compare July 8, 2019 15:11
…nd host mechine

* Set the path mapping with global config *.yml file
* If the mapping is not set on global config file, try to read the mapping from environment variable.
@raphendyr
Copy link
Contributor

raphendyr commented Aug 13, 2019

After a long though, I have come to conclusion. I think we will move forward with creating a volume, then uploading the course material to the volume and running the builds. To speed up this in iterative builds, we can use librsync or similar to upload only changed files.

Thus, before closing this PR, we need to:

  • Split the docker backend features (better docker object creation)
  • Use the json_re etc. when reading environment variables for roman configuration (the generic case)

In addition, we will look into implementing the volume stuff. Until that, the current system works for local building (the currently supported usecase).

@raphendyr raphendyr mentioned this pull request Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants