API to create, list, delete and update containers in different container environments. Currently supported: Docker and Kubernetes
- Before starting this container maker you need to have grpc certificates in place.
- To do that visit this repository:
https://github.com/Zim95/grpc_ssl_cert_generator
and follow the steps mentioned in theREADME.md
file.
-
Clone the repository
git clone --recurse-submodules https://github.com/Zim95/container-maker
-
Incase you miss the step to recurse submodules:
git submodule update --init --recursive
-
Install the requirements.
pip install -r requirements.txt
-
Run the setup command.
pip install container-maker-spec/
-
You should now be able to run the application.
python app.py
-
If you want to run in ssl mode, you need the certificates locally. You can go to this:
https://github.com/Zim95/grpc_ssl_cert_generator
repository and look up how to generate only certificates. Once done, you can use the following command:python app.py --use_ssl true
-
Clone the repository, if you haven't already.
git clone --recurse-submodules https://github.com/Zim95/container-maker
-
Incase you miss the step to recurse submodules:
git submodule update --init --recursive
-
Build the debug image by running this script.
./scripts/debug-build.sh
-
Deploy on kubernetes.
kubectl apply -f deployement/deployment-debug.yaml
-
Check for the pods:
kubectl get pods -n browseterm | grep container-maker-debug
-
Exec into any one of the pods (if there are multiple):
kubectl exec -it <pod id> -n browseterm -- bash
-
Either run
ipython
to check for changes. Or you can run the app:python app.py --use_ssl true
-
Now also run the jupyter notebook. Do this from a separate terminal window, keep the app running:
kubectl port-forward pod/<pod id> -n browseterm 8888:8888
Navigate to
localhost:8000
and go to thedemo
folder. -
You can now make changes and experment things using the jupyter notebook.
-
Clone the repository, if you haven't already.
git clone --recurse-submodules https://github.com/Zim95/container-maker
-
Incase you miss the step to recurse submodules:
git submodule update --init --recursive
-
Build the image