Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@contiamo/dev
Advanced tools
Get the dev environment fast!
Get started:
make docker-auth
make pull
Get the latest versions:
git pull
make pull
Start everything in normal mode:
make start
Stop everything:
make stop
Stop everything and clean up:
make clean
Prepare for Pantheon-external mode (only do this once):
make build
sudo bash -c 'echo "127.0.0.1 metadb" >> /etc/hosts'
Start everything in Pantheon-external mode:
make pantheon-start
env METADB_URL="jdbc:postgresql://localhost:5433/pantheon?user=pantheon&password=test" DATASTORE_TYPE=external sbt run
Local development is supported via Docker Compose.
Before you start, you must install Docker and Docker-Compose.
Additionally, the development requires access to our private docker registry. To access this ask the Ops team for permissions. Once permissions have been granted you must install the gcloud
CLI.
Once installed, run
make docker-auth pull
This will attempt to
Finally, to start the development environment, run
make start
Once the environment has started, you should see a message with a URL and credentials, like this
Dev ui: http://localhost:9898/contiamo/profile
Email: lemon@example.com
Password: localdev
You can always cleanly stop the environment using
make stop
Any data in the databases will be preserved between stop
and start
.
If you need to reclaim space or want to restart your environment from scratch use
make clean
This will stop your current environment and remove any Docker volumes related to it. This includes any data and metadata in the databases.
As time goes on, Docker will download new images, but it does not automatically garbage collect old images. To do so, run docker system prune
.
On Mac, all Docker filesystem data is stored in a single file of a fixed size, which is 16GB or 32GB by default. You can configure the size of this file by clicking on the Docker Desktop tray icon -> Preferences -> Disk -> move the slider.
Run make
or make help
to see all available commands.
You can also run these commands from a different directory, with e.g. make -C /path/to/dev start
.
The commands in the Makefile are very useful, but there's some extra stuff available if you use docker-compose
straight. For instance, get all logs with docker-compose logs --follow
, or only datastore worker logs with docker-compose logs --follow ds-worker
. Refer to docker-compose.yml
for the definitions of the services.
To use docker-compose
without cd
'ing to this directory, use e.g. docker-compose -f /path/to/dev/docker-compose.yml logs --follow
.
The Compose file supports overriding the Docker tag used for a service by setting several environment variables:
Server | Environment Variable | Default |
---|---|---|
datastore | DATASTORE_TAG | dev |
idp | IDP_TAG | dev |
pantheon | PANTHEON_TAG | latest |
contiamo-ui | CONTIAMOUI_TAG | latest |
In environment variable POSTGRES_ARGS
, you can pass extra arguments to the PostgreSQL daemon. By defaults, this is set to -c log_connections=on
. To log modification statements in addition to connections, start the dev environment with
env POSTGRES_ARGS="-c log_connections=on -c log_statement=mod" make start
You can inspect these logs with docker-compose logs --follow metadb
. The four acceptable values for log_statement
are none
, ddl
, mod
, and all
. Further Postgres options can be found here: https://www.postgresql.org/docs/11/runtime-config.html .
Local Pantheon debug development is supported by port redirection. To set this up, you first need to run two extra steps.
Run
make build
This builds the eu.gcr.io/dev-and-test-env/pantheon:redir
Docker image, a "pseudo-Pantheon" that forwards everything to your local Pantheon on 127.0.0.1
port 4300
. Do not push this image!
Modify your /etc/hosts
file to add
127.0.0.1 metadb
You can easily do this with sudo bash -c 'echo "127.0.0.1 metadb" >> /etc/hosts'
.
This ensures that Pantheon can correctly resolve the storage database service.
Make sure you first set up the prerequisites, and also set up for Pantheon local development.
To start the Pantheon dev environment use
make pantheon-start
This will replace the Pantheon image with a simple port redirection image that will enable transparent redirect of
You can then start your local Pantheon debug build, e.g. from your IDE, and have it bind to those ports on localhost. To configure the meta-DB and enable data store from Pantheon, run SBT with
env METADB_URL="jdbc:postgresql://localhost:5433/pantheon?user=pantheon&password=test" DATASTORE_TYPE=external sbt
or set the same environment variables in IntelliJ. You can also use export METADB_URL="jdbc:postgresql://localhost:5433/pantheon?user=pantheon&password=test" DATASTORE_TYPE=external
, to set the environment variables in the current terminal.
The docker-compose configuration will expose the following ports for use from local Pantheon:
127.0.0.1
port 9898
<-- Use this to access Data Hub including UI, IDP, Pantheon, Datastore.127.0.0.1
port 5433
, username pantheon
, password test
.127.0.0.1
port 9191
127.0.0.1
port 9000
When accessing Pantheon via Nginx on port 9898, you need to prepend /pantheon
to Pantheon URLs, for instance: http://localhost:9898/pantheon/api/v1/status . Nginx will strip off the /pantheon
, authenticate the request with IDP, and forward the request to Pantheon as /api/v1/status
.
Using the pantheon
/test
credentials for Postgres, you also have access to
metadb
database, for datastore,simpleidp
database.You can also run Pantheon in prod mode locally, as follows.
sbt
shell, run dist
.docker build -t eu.gcr.io/dev-and-test-env/pantheon:local .
This will download dependencies if they are not cached yet, build a Docker image for Pantheon, and tag it local
.env PANTHEON_TAG=local make start
.Now datastore and metadb will still be available on the usual ports, but Nginx will proxy to a prod-mode Pantheon which runs inside Docker. Pantheon will automatically be run with appropriate environment variables (https://github.com/contiamo/dev/blob/master/docker-compose.yml#L81).
Warning! Do not push this image to GCR. It may accidentally end up being deployed on dev.contiamo.io .
The Profiler currently lives at http://localhost:8383.
FAQs
Dev environment for contiamo
The npm package @contiamo/dev receives a total of 212 weekly downloads. As such, @contiamo/dev popularity was classified as not popular.
We found that @contiamo/dev demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.