-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Deployment changes #144
Deployment changes #144
Conversation
hey @ChangingTerry thanks for the assistance....i appreciate your recommendations! Have you tried building the frontend image? I cloned your repo but got the below error when attempting to build the frontend:
|
Sorry, looks like my ide changed the path in the Dockerfile and I didn't recheck it. . If you clone it now and do |
have you built a frontend image yourself? I've built the image based off your latest changes (i havent totally dug into them yet, but just wanted to quickly test), but its not finding the
i havent tried creating own certs yet |
I'm very sorry - I didn't mean to make more work for you. I have and I just cleared my cache and tried again.... all good. It's a bizzare error as you can see Looking at here which seems to be the line it failed - is there a chance you checked this out with Windows line endings applied? It feels like it's not reading the bang at the top? |
hey @ChangingTerry , no probs at all, I appreciate the changes! and yup I hit that script with a I do have a question regarding your change to the install docs, did you mean to remove the step to have the user create the Thanks again! |
No probs - i've had so much value out of your videos and medium guides, it felt like a tiny way to give back. When you have a When a user is ready to start adding in thier credentials for other services they can then start overiding the env vars either direct in the compose file, with an env file or using vault or another key manager (prod style). This gives them to option to manage how they want. Also some docker orchestrators/manages read the environment vars out of the image (docker inspect) and this will then give autocomplete/suggestions to people using it. So yes, on deploy it would be now imagined that the user does not need the .env file, they can just set these values how they want and it's less brittle. |
Glad you liked it - I'm currently playing with it on my own stack and it's a good product. If I can help with anything else let me know |
All great changes, thanks again :) ... will do and any features / improvements you recommend just let me know! still alot of ideas I have in mind that I plan to roll out but any other feedback is welcome |
thats for these wonderful changes, now i can begin working on a nethserve 8 module for the same, to make it easy to isntall for SME |
Thanks for you feedback on my last pull request. I had a look through as you suggested and have a few imporovements that may make things better for the end user.
templates
feature from the nginx image > 1.9 and simple entry point script.Couple of bit to be aware of I noticed:
Obviously having the self signed certs left in the repo, even though they are probably benign, is not a great look for a security product. You'll have a security review and keep having to explain about then. You might want to remove those files from all commits and save yourself the headache.
In your original docker compose you referred to the frontend image as
socfortress/copilot-frontend:latest
and the backend asghcr.io/socfortress/copilot-backend:latest
. With this method the client won't have to build thier own frontend. I wanted to make sure you intend for frontend to live next to backend so I put the image asghcr.io/socfortress/copilot-frontend:latest
and not the docker hub verson.The deploy script references a specfic release version in the README.md, currently 0.0.2 in this link:
wget https://raw.githubusercontent.com/socfortress/CoPilot/v0.0.2/docker-compose.yml
- this you will need to change on each release but should be easy to script.The dev version of the frontend build uses a cert created at build time. If you want me to make this more flexable let me know.