Replace apt-get in postgresql

This commit is contained in:
2024-02-02 15:02:07 +05:30
parent dd482a0a26
commit 09dcc41a79
2 changed files with 5 additions and 3 deletions

View File

@@ -109,7 +109,9 @@ RUN echo "export HADOOP_COMMON_HOME=/usr/local/hadoop" >> /usr/local/sqoop/conf/
RUN echo "export HADOOP_MAPRED_HOME=/usr/local/hadoop" >> /usr/local/sqoop/conf/sqoop-env.sh RUN echo "export HADOOP_MAPRED_HOME=/usr/local/hadoop" >> /usr/local/sqoop/conf/sqoop-env.sh
# Install PostgreSQL # Install PostgreSQL
RUN apt-get install -y postgresql ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y postgresql
RUN wget https://jdbc.postgresql.org/download/postgresql-42.7.1.jar RUN wget https://jdbc.postgresql.org/download/postgresql-42.7.1.jar
RUN mv postgresql-42.7.1.jar /usr/local/sqoop/lib/ RUN mv postgresql-42.7.1.jar /usr/local/sqoop/lib/

View File

@@ -34,7 +34,7 @@ docker build -t hadoop .
6. Create a new container using the newly created image 6. Create a new container using the newly created image
```bash ```bash
docker run -it -p 9870:9870 --name anyname hadoop bash docker run -it -p 9870:9870 -p 8088:8088 -p 9864:9864 --name anyname hadoop bash
``` ```
<br> <br>
@@ -53,4 +53,4 @@ docker exec -it anyname bash
Once in, execute: Once in, execute:
```bash ```bash
restart restart
``` ```