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

Configure tests to run inside a Docker container #664

Merged
merged 2 commits into from
Jan 16, 2019
Merged

Configure tests to run inside a Docker container #664

merged 2 commits into from
Jan 16, 2019

Conversation

wpolicarpo
Copy link
Member

It's no uncommon to see tests failing because FreeTDS could not be installed due to ftp issues. In order to mitigate this issue, I created a Docker image with all dependencies installed so we can use to run tests.

Dockerfile can be found here.

I'm happy to move Dockerfile source code to https://github.com/rails-sqlserver/docker-images if necessary.

@thomasfedb
Copy link

@wpolicarpo the failures here, am I correct that these are Rails 5.2 issues rather than problems created by the introduction of docker?

@wpolicarpo
Copy link
Member Author

@thomasfedb you're right, those errors are part of the Rails 5.2 changes. These docker images came to solve one specific problem: freetds and openssl installation, which was causing a lot of builds to fail because those FTP addresses were down/intermittent.

#662 will address Rails 5.2 regressions, but I'd like to have a more stable CI first and that's why I created these images.

Dockerfile Show resolved Hide resolved
docker-compose.yml Outdated Show resolved Hide resolved
@wpolicarpo
Copy link
Member Author

@metaskills are you ok with this change?

Also, I'm not sure why, but master builds are not being updated in travis. Can you have a look?

docker-compose.yml Outdated Show resolved Hide resolved
@wpolicarpo
Copy link
Member Author

Rebased onto master and added ruby 2.6.0.

@wpolicarpo wpolicarpo assigned aharpervc and unassigned metaskills Jan 10, 2019
@wpolicarpo
Copy link
Member Author

@aharpervc do you think this can be merged?

@wpolicarpo wpolicarpo merged commit d92c6a2 into rails-sqlserver:master Jan 16, 2019
@wpolicarpo wpolicarpo deleted the docker-tests branch January 17, 2019 12:15
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.

4 participants