Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kunkka王辉
docker-test
Commits
b833db1b
Commit
b833db1b
authored
Sep 18, 2023
by
Kunkka王辉
😲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 参数处理
parent
abf357bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
+23
-13
.bashrc
.bashrc
+13
-2
Dockerfile-php
src/Dockerfile-php
+2
-11
sources.list
src/sources.list
+8
-0
No files found.
.bashrc
View file @
b833db1b
...
...
@@ -12,6 +12,17 @@ alias mv='mv -i'
if
[
-f
~/.bash_aliases
]
;
then
.
~/.bash_aliases
fi
if
[
-x
/usr/bin/dircolors
]
;
then
test
-r
~/.dircolors
&&
eval
"
$(
dircolors
-b
~/.dircolors
)
"
||
eval
"
$(
dircolors
-b
)
"
alias ls
=
'ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep
=
'grep --color=auto'
alias
fgrep
=
'fgrep --color=auto'
alias
egrep
=
'egrep --color=auto'
fi
function
git-branch-name
{
git symbolic-ref
--short
-q
HEAD 2>/dev/null |
cut
-d
"/"
-f
3
}
...
...
@@ -25,11 +36,11 @@ PS1="\u@\h \[\033[0;36m\]\W\[\033[0m\]\[\033[0;32m\]\$(git-branch-prompt)\[\033[
function
php7
()
{
docker run
--rm
-it
--network
galaxy-net
-v
$(
pwd
)
:/app
galaxy-
php:7.4 php
"
$@
"
docker run
--rm
-it
--network
galaxy-net
-v
$(
pwd
)
:/app
harbor.galaxy-immi.com/galaxy-open-develop/
php:7.4 php
"
$@
"
}
function
composer
()
{
docker run
--rm
-it
--network
galaxy-net
-v
$(
pwd
)
:/app
galaxy-
php:7.4 composer
"
$@
"
docker run
--rm
-it
--network
galaxy-net
-v
$(
pwd
)
:/app
harbor.galaxy-immi.com/galaxy-open-develop/
php:7.4 composer
"
$@
"
}
src/Dockerfile-php
View file @
b833db1b
...
...
@@ -2,20 +2,11 @@ FROM phpdockerio/php74-cli
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# apt 国内镜像
COPY <<EOF /etc/apt/sources.list
deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
EOF
COPY sources.list /etc/apt/sources.list
# 安装扩展
RUN apt-get update && \
apt-get -y install php7.4-common php7.4-mysql php7.4-pgsql php7.4-mysqlnd php7.4-gd php7.4-bcmath php7.4-soap php7.4-sqlite3 php7.4-redis php7.4-fpm php7.4-gd php7.4-bcmath php7.4-mongodb php7.4-tidy php7.4-protobuf \
php7.4-rdkafka php7.4-tideways php7.4-imap php7.4-imagick php7.4-swoole php7.4-xmlrpc php7.4-intl php-pear
php7.4-rdkafka php7.4-tideways php7.4-imap php7.4-imagick php7.4-swoole php7.4-xmlrpc php7.4-intl php-pear
php7.4-pcov
RUN apt-get -y install php7.4-dev zlib1g-dev && \
curl -k https://pecl.php.net/get/xlswriter-1.5.5.tgz -L -o xlswriter-1.5.5.tgz && \
pecl install --offline xlswriter-1.5.5.tgz && rm -f xlswriter-1.5.5.tgz\
...
...
src/sources.list
0 → 100644
View file @
b833db1b
deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment