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

Add Dockerfile and integration tests #4

Merged
merged 14 commits into from
Jul 16, 2019
Merged

Conversation

ddworken
Copy link
Contributor

Adds a Dockerfile and directions on how to run the bot inside of Docker. Uses docker-compose and two additional docker containers to run full integration tests that test kssh and keybaseca working together. See the README for directions on how to run integration tests.

In order to get all of this to work inside of Docker, I also migrated all of the code to use keybase fs subcommands rather than reading from /keybase/. Running FUSE inside of docker requires giving the container the SYS_ADMIN capabilit which effectively disables the sandbox. With this change, it is not necessary to run FUSE inside of the container.

@ddworken ddworken requested a review from xgess July 11, 2019 18:10
tests/env.sh Outdated Show resolved Hide resolved
RUN useradd -ms /bin/bash keybase
USER keybase
WORKDIR /home/keybase
RUN curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb
Copy link
Contributor

Choose a reason for hiding this comment

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

i hit issues a while back with this being really old and failing something. maybe not an issue, but this is how to get more up-to-date versions. might be better to keep the old one. /shrug
https://prerelease.keybase.io/nightly/keybase_amd64.deb

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Until we see issues with this, I think it is best to stick with that link (which is listed as the stable release on our website). Given the nature of this project, I don't think it is a good idea to recommend running it on top of nightly builds unless truly necessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

agreed

tests/docker-compose.yml Outdated Show resolved Hide resolved
tests/kssh-entrypoint.sh Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@ddworken ddworken changed the base branch from david/better-config-handling to master July 12, 2019 17:09
@ddworken ddworken requested a review from xgess July 12, 2019 17:09
@ddworken ddworken requested review from xgess and removed request for xgess July 15, 2019 14:11
README.md Outdated Show resolved Hide resolved
@ddworken ddworken requested a review from xgess July 15, 2019 19:18
tests/docker-compose.yml Outdated Show resolved Hide resolved
integrationTest.sh Outdated Show resolved Hide resolved
@ddworken ddworken requested a review from xgess July 16, 2019 14:42
Copy link
Contributor

@xgess xgess left a comment

Choose a reason for hiding this comment

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

lookin' great!

@ddworken ddworken merged commit 0da8b47 into master Jul 16, 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