Skip to content

Commit

Permalink
Shrink the docker image size
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanjingyang authored and ycool committed Aug 9, 2018
1 parent 25ef20b commit 16cb2ce
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/build/dev.x86_64.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ RUN apt-get install -y \
vim \
v4l-utils \
nfs-common \
zip
zip && \
apt-get clean && rm -rf /var/lib/apt/lists/*

WORKDIR /apollo
USER apollo
1 change: 1 addition & 0 deletions docker/build/installers/install_bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ wget https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-ins
bash bazel-0.5.3-installer-linux-x86_64.sh

# Clean up.
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -fr bazel-0.5.3-installer-linux-x86_64.sh /etc/apt/sources.list.d/bazel.list
1 change: 1 addition & 0 deletions docker/build/installers/install_glew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ ln -s /usr/lib64/libGLEW.so /usr/lib/libGLEW.so
ln -s /usr/lib64/libGLEW.so.2.0 /usr/lib/libGLEW.so.2.0

# Clean up.
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -fr glew-2.0.0.zip glew-2.0.0 /etc/apt/sources.list.d/fillwave_ext.list
1 change: 1 addition & 0 deletions docker/build/installers/install_gpu_caffe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ mv caffe_x86/output-GPU/include/caffe /usr/include/
mv caffe_x86/output-GPU/lib/* /usr/lib/x86_64-linux-gnu/

# Clean up.
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -fr caffe_x86.tar.gz caffe_x86
1 change: 1 addition & 0 deletions docker/build/installers/install_ipopt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ cp -r include /usr/local/ipopt/ && cp -r lib /usr/local/ipopt/
popd

# Clean up.
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -fr Ipopt-3.12.8.zip Ipopt-3.12.8
3 changes: 3 additions & 0 deletions docker/build/installers/install_python_modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ apt-get install -y \
python3-psutil

pip install -r py27_requirements.txt

# Clean up.
apt-get clean && rm -rf /var/lib/apt/lists/*
2 changes: 2 additions & 0 deletions docker/build/installers/install_ros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ chmod a+w "${ROS}/share/gnss_driver/launch/gnss_driver.launch"
chmod a+w "${ROS}/share/gnss_driver/conf/gnss_conf_mkz.txt"

# Clean up.
# Clean up.
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -fr ${FILENAME} /etc/apt/sources.list.d/ros-latest.list
1 change: 1 addition & 0 deletions docker/build/installers/install_snowboy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ mkdir -p /usr/local/apollo
mv snowboy /usr/local/apollo/

# Clean up.
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -fr snowboy.tar.gz
3 changes: 3 additions & 0 deletions docker/build/installers/install_supervisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ set -e
apt-get install -y supervisor
# Add supervisord config file
echo_supervisord_conf > /etc/supervisord.conf

# Clean up.
apt-get clean && rm -rf /var/lib/apt/lists/*
1 change: 1 addition & 0 deletions docker/build/installers/install_yarn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ apt-get update -y
apt-get install -y yarn

# Clean up.
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -fr /etc/apt/sources.list.d/yarn.list
1 change: 1 addition & 0 deletions docker/build/installers/pre_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ apt-get install -y \
wget \
unzip

apt-get clean && rm -rf /var/lib/apt/lists/*
echo '\n\n\n' | ssh-keygen -t rsa

0 comments on commit 16cb2ce

Please sign in to comment.