Skip to content

Commit

Permalink
Remove the model database from cloudsim_bridge image because it doesn…
Browse files Browse the repository at this point in the history
…'t need it for anything. (#754)
  • Loading branch information
peci1 authored Jan 20, 2021
1 parent a2fb8c6 commit 8c444a3
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion docker/cloudsim_bridge/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Ubuntu 18.04 with nvidia-docker2 beta opengl support
FROM osrf/subt-virtual-testbed:models_latest
#FROM osrf/subt-virtual-testbed:models_latest
FROM nvidia/opengl:1.0-glvnd-devel-ubuntu18.04

RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
tzdata \
sudo \
wget \
gnupg \
lsb-release \
&& ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime \
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& apt-get clean

# Add a user with the same user_id as the user outside the container
# Requires a docker build argument `user_id`
ARG user_id
ENV USERNAME developer
RUN useradd -U --uid ${user_id} -ms /bin/bash $USERNAME \
&& echo "$USERNAME:$USERNAME" | chpasswd \
&& adduser $USERNAME sudo \
&& echo "$USERNAME ALL=NOPASSWD: ALL" >> /etc/sudoers.d/$USERNAME

# Commands below run as the developer user
USER $USERNAME

# When running a container start in the developer's home folder
WORKDIR /home/$USERNAME

# Tools I find useful during development
RUN sudo apt-get update -qq \
Expand Down

0 comments on commit 8c444a3

Please sign in to comment.