-
Notifications
You must be signed in to change notification settings - Fork 0
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
Replace vagrant-based testing with docker-based testing #7
Conversation
…ests as ckan user
…rship change for coverage data
Hi @paulmueller |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations, this is great!
The only thing that I would like to change is the environment file name.
.env.example
Outdated
@@ -0,0 +1,75 @@ | |||
# Host Ports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would propose to name this file to docker-env.ci
and consequently use it in the entire workflow, i.e.
- remove the "Create env file" step in
check.yml
- use that file in
docker-compose.ci.yml
'senv_file
key.
The reason is that .env
is too generic which might lead to ambiguities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will change it.
Aha, this approach has failed. Maybe it is compulsory to have a .env extension! |
Ok, I tested this file (docker-env.ci) manually. The variables are loaded when I run |
We need both |
You can specify the env file via docker command line: From the thread you linked, I read that there is a difference between |
If I understand correctly, you want me to split the But, we don't have to split this file. We have to keep the |
This is the question that I asked you 😸
You could remove the "Create env file" step and instead specify the env file in docker compose ( |
sorry for the confusion. Yes, we can set the global variables with |
Sounds good to me 👍 |
Hi @paulmueller , |
This PR aims to replace vagrant-based testing with docker-based testing. Docker-based testing is useful because it is faster to execute, easier to manage dependencies, and better integrated with CI/CD.
To do:
docker-run-test.sh
anddocker-compose.ci.yml
files