You need these requirementes to be installed on your machine:
- infraboxcli
- docker
- python 2.7
Install all the python packages you need for development.
pip install pipenv
pipenv installTo activate the environment every time you open a new shell:
pipenv shellTo build all images run:
infrabox run
./ib.py images buildIf you want to build them for another registry (default is localhost:5000) use the --registry and the --tag option:
./ib.py images build --registry myregistry --tag mytagYou may also filter which images to build with the --filter option. It takes a regular expression and every image name matchin the regex will be build.
./ib.py images build --filter api # builds only api
./ib.py images build --filter '.*' # builds all, defaultAfter building the images you may want to push them to a registry.
./ib.py images pushIt also takes the --registry, --tag and --filter options like images build does.
During development you may want to start several services separately to test your changes. You can start services like this:
./ib.py services start <service_name>Services to start are storage, opa, api and dashboard-client.
If you want to create a new changelog file, run:
./ib.py changelog createPlease, not that you should have your CHANGELOG_GITHUB_TOKEN path variable specified. Otherwise, you may want to explicitly specify your token within a command:
./ib.py changelog create --token=YOUR_TOKEN_HERESee the service's READMEs for details: