Skip to content

Commit 5ee6352

Browse files
authored
ci: adds RUN directive for cross-account IAM role access (#42)
Fixes AllenNeuralDynamics/aind-aws-infrastructure#329
1 parent 2241546 commit 5ee6352

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ ADD setup.py .
99
RUN apt-get update
1010
RUN apt-get install -y postgresql
1111
RUN pip install . --no-cache-dir
12+
RUN mkdir /root/.aws && \
13+
cat <<EOF > /root/.aws/config
14+
[profile bedrock-access]
15+
role_arn = arn:aws:iam::024848463001:role/bedrock-access-CO
16+
credential_source = EcsContainer
17+
EOF
1218

1319
EXPOSE 8000
14-
ENTRYPOINT ["sh", "-c", "panel serve src/aind_metadata_viz/app.py src/aind_metadata_viz/view.py src/aind_metadata_viz/query.py --static-dirs images=src/aind_metadata_viz/images --address 0.0.0.0 --port 8000 --allow-websocket-origin ${ALLOW_WEBSOCKET_ORIGIN} --keep-alive 10000 --index app.py"]
20+
ENTRYPOINT ["sh", "-c", "panel serve src/aind_metadata_viz/app.py src/aind_metadata_viz/view.py src/aind_metadata_viz/query.py --static-dirs images=src/aind_metadata_viz/images --address 0.0.0.0 --port 8000 --allow-websocket-origin ${ALLOW_WEBSOCKET_ORIGIN} --keep-alive 10000 --index app.py"]

0 commit comments

Comments
 (0)