broad-zoo-34077
11/19/2021, 5:53 PMlittle-author-61621
broad-rain-72019
11/19/2021, 7:04 PMlittle-author-61621
docker-compose run --entrypoint=/bin/bash init_job
And then:
ls -lah data
What do you see?white-airport-8778
broad-rain-72019
11/19/2021, 8:28 PMbroad-rain-72019
11/19/2021, 8:29 PMbroad-rain-72019
11/19/2021, 8:30 PMwhite-airport-8778
broad-rain-72019
11/19/2021, 8:32 PMwhite-airport-8778
infracost/cloud-pricing-api:latest
to infracost/cloud-pricing-api:test
and see if that works ok? that’s a test tag I created after the last permissions fix, if that fixes your issue you can use this until we cut a release tag next week (we need to do more testing as upgraded node too in the master branch)broad-rain-72019
11/19/2021, 8:50 PMwhite-airport-8778
docker-compose down
first (to force it to remove the old volumes but maybe that is also needed if they had bad permission issues), then docker-compose pull && docker-compose up
?broad-rain-72019
11/19/2021, 8:59 PMwhite-airport-8778
broad-rain-72019
11/19/2021, 9:04 PMwhite-airport-8778
white-airport-8778
git pull && git reset --hard
# to revert any changes.
2. edit the Dockerfile to comment-out these lines:
#RUN addgroup -g 1001 -S infracost && \
# adduser -u 1001 -S infracost -G infracost && \
# chown -R infracost:infracost /usr/src/app
#USER 1001
3. docker-compose build
4. docker-compose up
We had added the above to enable non-root containers to run on K8s envs but it doesn’t work on the docker-compose as you’re finding out so we need to test it morebroad-rain-72019
11/19/2021, 9:47 PMwhite-airport-8778
init_job_1: Completed: downloading DB data
.
Is that what you’re seeing?broad-rain-72019
11/19/2021, 9:49 PMwhite-airport-8778
docker ps
do you see the PostgreSQL DB and Cloud Pricing API containers as running?broad-rain-72019
11/19/2021, 9:53 PMwhite-airport-8778
docker-compose up
you should see the app logs on the screen if you curl <http://localhost:4000>
broad-rain-72019
11/19/2021, 9:56 PMwhite-airport-8778
docker-compose up -d
then it goes into daemon mode and exits, so the containers continue to run in the background and you can docker logs
them individually to see the logsbroad-rain-72019
11/19/2021, 9:57 PMwhite-airport-8778