cloudposse / bastion

🔒Secure Bastion implemented as Docker Container running Alpine Linux with Google Authenticator & DUO MFA support
https://cloudposse.com/accelerate
Apache License 2.0
640 stars 112 forks source link

Add compose example to build bastion from source #47

Closed jawabuu closed 1 year ago

jawabuu commented 4 years ago

Enhance docker-compose example to build bastion from source. We should look at Issue #46 to see why below error occurs when SSH_AUDIT_ENABLED=true

bastion_1  | Initializing ssh-audit
bastion_1  | - Enabling SSH Audit Logs
bastion_1  | Password: chsh: PAM: Authentication token manipulation error
bastion_1  | FATAL: Failed to initialize

@osterman

jawabuu commented 4 years ago

Hey @osterman Great to hear from you. I don't believe I modified the README created generated by README.yaml. Kindly clarify.

max-lobur commented 1 year ago

Shouldn't this just be docker-compose -f examples/compose/docker-compose.yml build though? Why does it need another compose file?

jonmchan commented 1 year ago

Shouldn't this just be docker-compose -f examples/compose/docker-compose.yml build though? Why does it need another compose file?

The current docker-compose.yml file does not build from source. Executing that command would still pull from hub.docker.com.

That said, I think it is trivial for anyone with decent experience with docker to configure a docker-compose.yml file that builds from source. Additionally, the test/docker-compose.yml now even serves as an example for building from source.

I'd be in favor of just closing this PR.

jonmchan commented 1 year ago

Closing due to inactivity. Please reopen this PR if anyone feels this is still important. Thank you!