Is anyone running Meltano in a docker image in Git...
# troubleshooting
m
Is anyone running Meltano in a docker image in GitHub actions? We’re running meltano in GitHub actions today but not in the Docker image, as I haven’t been able to figure out how to invoke the meltano executable in the container in a GitHub actions step (as it seems in a GitHub actions step you can’t use the defined container entrypoint?)
v
Not doing it with a container right now but I'll show what I have
v
Better than mine I"ll stay out of this 😄
m
thank you @edgar_ramirez_mondragon! I feel like I tried running the whole job in a container but will take another look
j
I'm not using an action but can run meltano inside docker with codespaces, using make. basically, build docker container and copy makefile into it, then invoke "make pipeline" which wraps all the meltano commands.
it runs with these two commands in the makefile found here.
Copy code
docker-build:
	docker build -t mdsbox .
Copy code
docker-run-superset:
	docker run \
		--publish 8088:8088 \
	 	--env MELTANO_CLI_LOG_LEVEL=WARNING \
		--env MDS_SCENARIOS=10000 \
		--env MDS_INCLUDE_ACTUALS=true \
		--env MDS_LATEST_RATINGS=true \
		--env MDS_ENABLE_EXPORT=true \
		--env ENVIRONMENT=docker \
		mdsbox make pipeline superset-visuals
j
Don't wanna troll, but I recommend to use Gitlab. There, you can override the entry point easily: https://gitlab.com/patrikbraborec/gooddata-data-pipeline/-/blob/main/.gitlab-ci.yml#L83 I could not use the official Meltano image, so I created a simple Dockefile meeting my needs: https://gitlab.com/patrikbraborec/gooddata-data-pipeline/-/blob/main/Dockerfile_meltano