Skip to content

Commit

Permalink
Preparation for fixing up docker
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterJansen committed Oct 1, 2024
1 parent 64025aa commit 7a46969
Show file tree
Hide file tree
Showing 7 changed files with 627 additions and 29 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile_binary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=nvidia/cudagl:10.0-devel-ubuntu18.04
ARG BASE_IMAGE=ghcr.io/epicgames/unreal-engine:runtime
FROM $BASE_IMAGE

RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
Expand All @@ -12,7 +12,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-ins

RUN python3 -m pip install --upgrade pip && \
pip3 install setuptools wheel && \
pip3 install airsim
pip3 install cosysairsim

RUN adduser --force-badname --disabled-password --gecos '' --shell /bin/bash airsim_user && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
Expand Down
10 changes: 5 additions & 5 deletions docker/Dockerfile_source
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=adamrehn/ue4-engine:4.19.2-cudagl10.0
ARG BASE_IMAGE=ghcr.io/epicgames/unreal-engine:dev-5.4.3
FROM $BASE_IMAGE

USER root
Expand All @@ -9,13 +9,13 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-ins
x11-xserver-utils

RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
adduser ue4 sudo
adduser ue5 sudo

USER ue4
RUN cd /home/ue4 && \
USER ue5
RUN cd /home/ue5 && \
git clone --progress https://github.com/Cosys-Lab/Cosys-AirSim.git && \
cd AirSim && \
./setup.sh && \
./build.sh

WORKDIR /home/ue4
WORKDIR /home/ue5
4 changes: 2 additions & 2 deletions docker/build_airsim_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ def build_docker_image(args):
dockerfile = 'Dockerfile_source'
if args.source:
if not args.base_image:
args.base_image = "adamrehn/ue4-engine:4.19.2-cudagl10.0"
args.base_image = "ghcr.io/epicgames/unreal-engine:runtime"
target_image_tag = args.base_image.split(":")[1] # take tag from base image
if not args.target_image:
args.target_image = 'airsim_source' + ':' + target_image_tag

else:
dockerfile = 'Dockerfile_binary'
if not args.base_image:
args.base_image = "nvidia/cudagl:10.0-devel-ubuntu18.04"
args.base_image = "ghcr.io/epicgames/unreal-engine:dev-5.4.3"
target_image_tag = args.base_image.split(":")[1] # take tag from base image
if not args.target_image:
args.target_image = 'airsim_binary' + ':' + target_image_tag
Expand Down
6 changes: 3 additions & 3 deletions docker/download_blocks_env_binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ if ! which unzip; then
sudo apt-get install unzip
fi

wget -c https://github.com/microsoft/AirSim/releases/download/v1.6.0-linux/Blocks.zip
unzip -q Blocks.zip
rm Blocks.zip
wget -c https://github.com/Cosys-Lab/Cosys-AirSim/releases/download/5.4-v3.1/Blocks_package_54_31.zip
unzip -q Blocks_package_54_31.zip
rm Blocks_package_54_31.zip
Loading

0 comments on commit 7a46969

Please sign in to comment.