Skip to content

Commit e1e6350

Browse files
authored
chore: Add PATH env variable to actually run dependencies in post-processor (#2164)
* fix: add path for owlbot specific path * chore: fix linting by adding dependencies to PATH * do not add build.sh yet * clean up pr
1 parent 2a183df commit e1e6350

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docker/owlbot/nodejs_mono_repo/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ ENV SYNTHTOOL_TEMPLATES="/synthtool/synthtool/gcp/templates"
126126
# Copy synthtool source code and associated Docker files.
127127
COPY synthtool /synthtool/synthtool
128128
COPY docker /synthtool/docker
129-
# COPY post-processor-changes.txt /post-processor-changes.txt
129+
COPY post-processor-changes.txt /post-processor-changes.txt
130130

131131
# Update file permissions to prevent errors for non-root users.
132132
RUN find /synthtool -exec chmod a+r {} \; && \
@@ -150,6 +150,7 @@ RUN npm i gts@6.0.2 google-gax@5.1.0-rc.1 \
150150
# Switch back to root if needed for subsequent steps.
151151
USER root
152152

153+
ENV PATH="/synthtool/node_modules/.bin:${PATH}"
153154
# ... (any other commands that require root access) ...
154155

155156
ENTRYPOINT [ "/bin/bash", "/synthtool/docker/owlbot/nodejs_mono_repo/entrypoint.sh" ]

0 commit comments

Comments
 (0)