Deploying Cockpit CMS on AWS Elastic Beanstalk is a real pain in the backside, so I made a quick starter with Docker.
-
Clone the repo
git clone https://github.com/lewisdonovan/eb-cockpit-starter.git
-
Open the
.env
file and change the values forCOCKPIT_APP_NAME
andCOCKPIT_SEC_KEY
. -
Initialise Elastic Beanstalk
eb init
-
Deploy
eb deploy
The repo provides a .env
file with variables for all the settings in Cockpit config. You can uncomment and edit them to suit your needs.
The whole of cockpit-core
is in the app
folder, do not edit it, you can make edits in the custom
folder instead. Anything you add to the custom
folder will overwrite the corresponding Cockpit files when the EB container builds and the rest of the Cockpit files will remain untouched.
For example, if you create a file at custom/modules/App/views/auth/login.php
, it will replace the file at /app/modules/App/views/auth/login.php
in the container build.
This way you can safely make edits without overwriting the Cockpit source.
This is a working solution, but it's not actively maintained. Issues and PRs will be responded to as and when I can.
Feel free to submit a PR if you've fixed an open issue. Thank you.