-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
RUN useradd -ms /bin/bash keybase | ||
USER keybase | ||
WORKDIR /home/keybase | ||
RUN curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb |
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 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
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.
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.
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.
agreed
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.
lookin' great!
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 theSYS_ADMIN
capabilit which effectively disables the sandbox. With this change, it is not necessary to run FUSE inside of the container.