File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,25 @@ RUN pip install --no-cache-dir -r docs/requirements.txt
10
10
11
11
# install streamlit requirements
12
12
RUN pip install --no-cache-dir -r streamlit_app/requirements.txt
13
+
14
+ # install AWS CLI and Copilot CLI
15
+ USER root
16
+ # download AWS CLIs to /tmp to avoid write error (23) from curl command
17
+ WORKDIR /tmp
18
+ RUN HOST_ARCH=$(uname -m) && \
19
+ case "$HOST_ARCH" in \
20
+ x86_64) HOST_ARCH="amd64" ;; \
21
+ aarch64) HOST_ARCH="arm64" ;; \
22
+ esac \
23
+ && if [ "$HOST_ARCH" = "amd64" ]; then \
24
+ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" ; \
25
+ elif [ "$HOST_ARCH" = "arm64" ]; then \
26
+ curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" ; \
27
+ fi \
28
+ && unzip awscliv2.zip \
29
+ && ./aws/install \
30
+ && rm -rf aws awscliv2.zip
31
+
32
+ RUN curl -Lo copilot https://github.com/aws/copilot-cli/releases/latest/download/copilot-linux \
33
+ && chmod +x copilot \
34
+ && mv copilot /usr/local/bin/copilot
Original file line number Diff line number Diff line change @@ -13,3 +13,6 @@ DJANGO_DB_FIXTURES="pems/local_fixtures.json"
13
13
STREAMLIT_LOCAL_PORT = 8501
14
14
# options: hidden, sidebar
15
15
STREAMLIT_NAV = hidden
16
+
17
+ # AWS
18
+ AWS_PROFILE = pems
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ services:
20
20
entrypoint : sleep infinity
21
21
volumes :
22
22
- ./:/caltrans/app
23
+ - ${HOME}/.aws:/caltrans/.aws
23
24
24
25
docs :
25
26
image : caltrans/pems:dev
You can’t perform that action at this time.
0 commit comments