You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using counterfact while writing integration tests with Jest. Before my tests begin, I launch a few local Docker containers using the testcontainers project. I wrote a small Dockerfile to run counterfact inside a container, but I need to build the image as part of my test setup. It would be nice if there was an official image I could use, and skip the build step.
There is one related issue that I hit while running counterfact inside a container. Initially I wanted to just bind mount my api schema, and existing generated counterfact code into the container (as a read-only mount). This didn't work, because counterfact was trying to write to the .cache directory from within the container. I believe allowing customization of the .cache directory would help.
Dockerfile
FROM node:20-alpine
RUN mkdir /app
RUN npm add -g counterfact
USER node
WORKDIR /app
ENTRYPOINT [ "counterfact" ]
The text was updated successfully, but these errors were encountered:
@mjpowersjr checking in to see if you have any other thoughts. I saw you forked the repo and had started to make some improvements. I would love the help!
I'm using counterfact while writing integration tests with Jest. Before my tests begin, I launch a few local Docker containers using the testcontainers project. I wrote a small
Dockerfile
to run counterfact inside a container, but I need to build the image as part of my test setup. It would be nice if there was an official image I could use, and skip the build step.There is one related issue that I hit while running counterfact inside a container. Initially I wanted to just bind mount my api schema, and existing generated counterfact code into the container (as a read-only mount). This didn't work, because counterfact was trying to write to the
.cache
directory from within the container. I believe allowing customization of the.cache
directory would help.Dockerfile
The text was updated successfully, but these errors were encountered: