Skip to content

Commit 8a503cb

Browse files
committed
Add AWS Client v2
1 parent 20770dd commit 8a503cb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docker/oracle-observer/Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN chown -R oracle:oinstall /home/oracle && \
1212
usermod -d /home/oracle oracle && \
1313
usermod -s /bin/bash oracle
1414

15-
RUN dnf -y install make binutils glibc-devel zip
15+
RUN dnf -y install make binutils glibc-devel zip less
1616

1717
RUN mkdir -p ${ORACLE_HOME} && \
1818
chown -R oracle:oinstall /u01
@@ -26,6 +26,11 @@ RUN unzip LINUX.X64_193000_client.zip
2626
RUN echo "inventory_loc=/u01/app/oracle/oraInventory" > /etc/oraInst.loc
2727
RUN echo "inst_group=oinstall" >> /etc/oraInst.loc
2828

29+
# Install v2 of AWS CLI (v1 is installed by default)
30+
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
31+
RUN unzip awscliv2.zip
32+
RUN /opt/aws/install
33+
2934
USER oracle:oinstall
3035

3136
WORKDIR /home/oracle
@@ -44,6 +49,7 @@ USER root
4449

4550
RUN ${ORACLE_HOME}/root.sh
4651
RUN rm -rf /opt/client
52+
RUN rm -rf /opt/aws
4753

4854
USER oracle:oinstall
4955

0 commit comments

Comments
 (0)