Skip to content

Commit 5a0c905

Browse files
author
牟勇
committed
feat: change source
1 parent b6204e5 commit 5a0c905

4 files changed

Lines changed: 5 additions & 22 deletions

File tree

docker-compose.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ services:
216216
- "9000"
217217
extra_hosts:
218218
- "dockerhost:${DOCKER_HOST_IP}"
219-
dns: 114.114.114.114
220219
environment:
221220
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
222221
- DOCKER_HOST=tcp://docker-in-docker:2375
@@ -228,7 +227,6 @@ services:
228227
links:
229228
- docker-in-docker
230229

231-
232230
### PHP Worker ############################################
233231
php-worker:
234232
build:
@@ -379,7 +377,6 @@ services:
379377
context: ./mysql
380378
args:
381379
- MYSQL_VERSION=${MYSQL_VERSION}
382-
command: "--innodb_use_native_aio=0"
383380
environment:
384381
- MYSQL_DATABASE=${MYSQL_DATABASE}
385382
- MYSQL_USER=${MYSQL_USER}

php-fpm/xdebug.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ xdebug.remote_port=9000
66
xdebug.idekey=PHPSTORM
77

88
xdebug.remote_autostart=0
9-
xdebug.remote_enable=1
9+
xdebug.remote_enable=0
1010
xdebug.cli_color=1
1111
xdebug.profiler_enable=0
1212
xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp/profiling"

workspace/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ ENV DEBIAN_FRONTEND noninteractive
2525

2626
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
2727

28-
ADD ubuntu.sources.list /etc/apt/ubuntu.sources.list
2928
ARG CHANGE_SOURCE=false
3029
RUN if [ ${CHANGE_SOURCE} = true ]; then \
31-
mv /etc/apt/sources.list /etc/apt/sources.list.back && \
32-
mv /etc/apt/ubuntu.sources.list /etc/apt/sources.list \
30+
# Change application source from deb.debian.org to aliyun source
31+
sed -i 's/deb.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list && \
32+
sed -i 's/security.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list && \
33+
sed -i 's/security-cdn.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list \
3334
;fi
3435

3536
# Start as root

workspace/ubuntu.sources.list

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)