Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-composer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
noblogs-composer
Commits
402a85fc
Commit
402a85fc
authored
2 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Install wp-cli
parent
de3587f8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+5
-0
5 additions, 0 deletions
Dockerfile
docker/wp
+2
-0
2 additions, 0 deletions
docker/wp
with
7 additions
and
0 deletions
Dockerfile
+
5
−
0
View file @
402a85fc
...
...
@@ -23,6 +23,11 @@ COPY docker/conf /tmp/conf
COPY
docker/build.sh /tmp/build.sh
COPY
--from=gobuild /src/modsec_logger /usr/local/bin/modsec_logger
# Install wp-cli in /usr/local/bin (aliased as "wp").
ADD
https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar /usr/local/bin/wp-cli.phar
COPY
docker/wp /usr/local/bin/wp
RUN
chmod
0755 /usr/local/bin/wp /usr/local/bin/wp-cli.phar
RUN
/tmp/build.sh
&&
rm
/tmp/build.sh
# For testing purposes (8080 is the default port of apache2-php-base).
...
...
This diff is collapsed.
Click to expand it.
docker/wp
0 → 100755
+
2
−
0
View file @
402a85fc
#!/bin/sh
exec
/usr/local/bin/wp-cli.phar
--path
=
/opt/noblogs/www
"
$@
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment