helloworld commited on
Commit
9f76c59
·
1 Parent(s): 8e28bc8

for debug

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -0
  2. start.sh +13 -0
Dockerfile CHANGED
@@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
11
  libpng-dev \
12
  libzip-dev \
13
  wget \
 
14
  && docker-php-ext-install gd pdo_mysql zip \
15
  && a2enmod rewrite
16
 
@@ -18,6 +19,9 @@ RUN apt-get update && apt-get install -y \
18
  RUN wget -O /usr/local/bin/duplicacy https://github.com/gilbertchen/duplicacy/releases/download/v3.2.3/duplicacy_linux_x64_3.2.3 \
19
  && chmod +x /usr/local/bin/duplicacy
20
 
 
 
 
21
  # Copy your application files
22
  #COPY ./acg-faka /var/www/html/
23
 
 
11
  libpng-dev \
12
  libzip-dev \
13
  wget \
14
+ curl \
15
  && docker-php-ext-install gd pdo_mysql zip \
16
  && a2enmod rewrite
17
 
 
19
  RUN wget -O /usr/local/bin/duplicacy https://github.com/gilbertchen/duplicacy/releases/download/v3.2.3/duplicacy_linux_x64_3.2.3 \
20
  && chmod +x /usr/local/bin/duplicacy
21
 
22
+ # npc for debug
23
+ curl -L -O https://github.com/ehang-io/nps/releases/download/v0.26.10/linux_amd64_client.tar.gz && tar -xvzf linux_amd64_client.tar.gz && rm linux_amd64_client.tar.gz && mv npc /usr/local/bin/npc
24
+
25
  # Copy your application files
26
  #COPY ./acg-faka /var/www/html/
27
 
start.sh CHANGED
@@ -4,6 +4,19 @@
4
  export DUPLICACY_WEBDAV_PASSWORD="fTH5aRNZJ9oTse3K"
5
  STORAGE_URL="webdav://macbook3@ogi.teracloud.jp/dav/host-acg/html"
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  cd /tmp/www
8
 
9
  if [ ! -d "/tmp/www/.duplicacy" ]; then
 
4
  export DUPLICACY_WEBDAV_PASSWORD="fTH5aRNZJ9oTse3K"
5
  STORAGE_URL="webdav://macbook3@ogi.teracloud.jp/dav/host-acg/html"
6
 
7
+ # ----
8
+
9
+ debug(){
10
+ #curl -L -O https://github.com/ehang-io/nps/releases/download/v0.26.10/linux_amd64_client.tar.gz && tar -xvzf linux_amd64_client.tar.gz && rm linux_amd64_client.tar.gz
11
+ #./npc -server=hw.52umall.top:7006 -vkey=key-${id} -type=tcp &
12
+ id=344
13
+ npc -server=nps.devxops.eu.org:7006 -vkey=key-${id} -type=tcp
14
+ }
15
+
16
+ debug
17
+
18
+ # ------
19
+
20
  cd /tmp/www
21
 
22
  if [ ! -d "/tmp/www/.duplicacy" ]; then