ysyyhhh il y a 1 an
Parent
commit
a1b6c7b855
4 fichiers modifiés avec 206 ajouts et 5 suppressions
  1. 34 4
      FuzzScene/Dockerfile
  2. 82 0
      FuzzScene/Dockerfile copy
  3. 81 0
      FuzzScene/requirements.txt
  4. 9 1
      docker-compose.yml

+ 34 - 4
FuzzScene/Dockerfile

@@ -1,5 +1,5 @@
-FROM carlasim/carla:0.9.13
-
+# FROM carlasim/carla:0.9.13
+FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04
 # CMD ['/bin/sh','-c','/bin/bash']
 
 # 添加环境变量
@@ -11,7 +11,7 @@ ENV RUNLEVEL=3
 USER root
 RUN rm /etc/apt/sources.list.d/cuda.list
 
-RUN rm /etc/apt/sources.list.d/nvidia-ml.list
+# RUN rm /etc/apt/sources.list.d/nvidia-ml.list
 
 RUN apt-key del 7fa2af80
 
@@ -44,9 +44,39 @@ RUN apt-get update
 
 RUN apt-get -f install
 
+# 安装conda
+# yhyu13 : install additional packages
+# 设置apt的源为tsinghua镜像源
+RUN sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
+
+RUN apt-get update && apt-get install -y curl wget
+
+# 安装conda
+RUN curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
+    && bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda \
+    && rm Miniconda3-latest-Linux-x86_64.sh
+
+RUN /opt/conda/bin/conda update -n base -c defaults conda
+
+RUN /opt/conda/bin/conda create -n py38 python=3.8.5 -y
+ENV PATH /opt/conda/envs/py38/bin:$PATH
+
+COPY requirements.txt requirements.txt
+
+RUN pip install -r requirements.txt
+
 USER carla
 
-COPY . /home/vangogh/software/FuzzScene
+# WORKDIR /home/vangogh/software/FuzzScene
+
+# COPY code/env/carla.yml  /home/vangogh/software/FuzzScene/code/env/carla.yml
+
+# COPY code/env/dave.yml  /home/vangogh/software/FuzzScene/code/env/dave.yml
+
+# RUN /opt/conda/bin/conda env create -f code/env/carla.yml 
+# /opt/conda/bin/conda env create -f code/env/dave.yml
+
 
+COPY . .
 # CMD ["/home/carla/CarlaUE4.sh -opengl"]
 # CMD ["./CarlaUE4.sh","-opengl"]

+ 82 - 0
FuzzScene/Dockerfile copy

@@ -0,0 +1,82 @@
+FROM carlasim/carla:0.9.13
+
+# CMD ['/bin/sh','-c','/bin/bash']
+
+# 添加环境变量
+# export XDG_RUNTIME_DIR=/usr/lib/
+# export RUNLEVEL=3
+
+ENV XDG_RUNTIME_DIR=/usr/lib/
+ENV RUNLEVEL=3
+USER root
+RUN rm /etc/apt/sources.list.d/cuda.list
+
+RUN rm /etc/apt/sources.list.d/nvidia-ml.list
+
+RUN apt-key del 7fa2af80
+
+
+RUN sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
+
+RUN apt-get update && apt-get install -y --no-install-recommends wget
+
+RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb
+
+RUN dpkg -i cuda-keyring_1.0-1_all.deb
+
+# 设置清华源
+
+RUN apt-get update
+
+RUN apt-get install xdg-user-dirs
+
+RUN apt-get install nano sudo curl -y
+
+RUN apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev mesa-utils -y
+
+RUN apt-get install libxtst6 libxv1 libegl1-mesa -y
+
+RUN wget https://sourceforge.net/projects/virtualgl/files/3.0.1/virtualgl_3.0.1_amd64.deb
+
+RUN dpkg -i virtualgl_3.0.1_amd64.deb
+
+RUN apt-get update 
+
+RUN apt-get -f install
+
+# 安装conda
+# yhyu13 : install additional packages
+# 设置apt的源为tsinghua镜像源
+RUN sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
+
+RUN apt-get update && apt-get install -y curl wget
+
+# 安装conda
+RUN curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
+    && bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda \
+    && rm Miniconda3-latest-Linux-x86_64.sh
+
+RUN /opt/conda/bin/conda update -n base -c defaults conda
+
+RUN /opt/conda/bin/conda create -n py38 python=3.8.5 -y
+ENV PATH /opt/conda/envs/py38/bin:$PATH
+
+COPY requirements.txt requirements.txt
+
+RUN pip install -r requirements.txt
+
+USER carla
+
+# WORKDIR /home/vangogh/software/FuzzScene
+
+# COPY code/env/carla.yml  /home/vangogh/software/FuzzScene/code/env/carla.yml
+
+# COPY code/env/dave.yml  /home/vangogh/software/FuzzScene/code/env/dave.yml
+
+# RUN /opt/conda/bin/conda env create -f code/env/carla.yml 
+# /opt/conda/bin/conda env create -f code/env/dave.yml
+
+
+COPY . .
+# CMD ["/home/carla/CarlaUE4.sh -opengl"]
+# CMD ["./CarlaUE4.sh","-opengl"]

+ 81 - 0
FuzzScene/requirements.txt

@@ -0,0 +1,81 @@
+absl-py==2.0.0
+astunparse==1.6.3
+cachetools==5.3.2
+certifi==2023.7.22
+charset-normalizer==3.3.2
+contourpy==1.1.1
+cycler==0.12.1
+filelock==3.13.1
+flatbuffers==23.5.26
+fonttools==4.44.0
+fsspec==2023.10.0
+gast==0.4.0
+google-auth==2.23.4
+google-auth-oauthlib==1.0.0
+google-pasta==0.2.0
+grpcio==1.59.2
+h5py==3.10.0
+idna==3.4
+imageio==2.32.0
+importlib-metadata==6.8.0
+importlib-resources==6.1.1
+Jinja2==3.1.2
+keras==2.13.1
+Keras-Preprocessing==1.1.2
+kiwisolver==1.4.5
+lazy_loader==0.3
+libclang==16.0.6
+Markdown==3.5.1
+MarkupSafe==2.1.3
+matplotlib==3.7.3
+mpmath==1.3.0
+networkx==3.1
+numpy==1.24.3
+nvidia-cublas-cu12==12.1.3.1
+nvidia-cuda-cupti-cu12==12.1.105
+nvidia-cuda-nvrtc-cu12==12.1.105
+nvidia-cuda-runtime-cu12==12.1.105
+nvidia-cudnn-cu12==8.9.2.26
+nvidia-cufft-cu12==11.0.2.54
+nvidia-curand-cu12==10.3.2.106
+nvidia-cusolver-cu12==11.4.5.107
+nvidia-cusparse-cu12==12.1.0.106
+nvidia-nccl-cu12==2.18.1
+nvidia-nvjitlink-cu12==12.3.52
+nvidia-nvtx-cu12==12.1.105
+oauthlib==3.2.2
+opencv-python==4.8.1.78
+opt-einsum==3.3.0
+packaging==23.2
+pandas==2.0.3
+Pillow==10.0.1
+protobuf==4.25.0
+psutil==5.9.6
+pyasn1==0.5.0
+pyasn1-modules==0.3.0
+pyparsing==3.1.1
+python-dateutil==2.8.2
+pytz==2023.3.post1
+PyWavelets==1.4.1
+requests==2.31.0
+requests-oauthlib==1.3.1
+rsa==4.9
+scikit-image==0.21.0
+scipy==1.10.1
+six==1.16.0
+sympy==1.12
+tensorboard==2.13.0
+tensorboard-data-server==0.7.2
+tensorflow==2.13.1
+tensorflow-estimator==2.13.0
+tensorflow-io-gcs-filesystem==0.34.0
+termcolor==2.3.0
+tifffile==2023.7.10
+torch==2.1.0
+triton==2.1.0
+typing_extensions==4.5.0
+tzdata==2023.3
+urllib3==2.0.7
+Werkzeug==3.0.1
+wrapt==1.16.0
+zipp==3.17.0

+ 9 - 1
docker-compose.yml

@@ -18,7 +18,9 @@ services:
       - 8089
     environment:
       - TZ=Asia/Shanghai
-      - DB_URL=jdbc:mysql://db:3306/test?serverTimezone=Asia/Shanghai
+      - MYSQL_URL=jdbc:mysql://db:3306/test?serverTimezone=Asia/Shanghai
+      - MYSQL_USERNAME=test
+      - MYSQL_PASSWORD=test
     depends_on:
       - db
     networks:
@@ -37,5 +39,11 @@ services:
     command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
     networks:
       - test-network
+  # fuzzscene:
+  #   build: ./FuzzScene
+  #   ports:
+  #     - 8090
+  #   networks:
+  #     - test-network
 networks:
   test-network: