mirror of
https://github.com/10h30/ols-docker-env.git
synced 2026-05-12 15:21:24 +09:00
update travis
This commit is contained in:
+1
-3
@@ -22,7 +22,6 @@ env:
|
||||
- DOCKER_COMPOSE_VERSION=1.25.0
|
||||
|
||||
before_install:
|
||||
- chmod +x ./.travis/main.sh
|
||||
- ./.travis/main.sh
|
||||
|
||||
install:
|
||||
@@ -36,8 +35,7 @@ before_script:
|
||||
- sleep 10
|
||||
|
||||
script:
|
||||
- curl -Ik http://localhost:80/
|
||||
- curl -Ik http://localhost:443/
|
||||
- ./.travis/verify.sh
|
||||
|
||||
after_success:
|
||||
- echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
|
||||
|
||||
Regular → Executable
Executable
+59
@@ -0,0 +1,59 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
install_demo(){
|
||||
./bin/demosite.sh
|
||||
}
|
||||
|
||||
verify_lsws(){
|
||||
curl -sIk http://localhost:7080/ | grep -i LiteSpeed
|
||||
if [ ${?} = 0 ]; then
|
||||
echo '[O] https://localhost:7080/'
|
||||
else
|
||||
echo '[X] https://localhost:7080/'
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
verify_page(){
|
||||
curl -sIk http://localhost:80/ | grep -i WordPress
|
||||
if [ ${?} = 0 ]; then
|
||||
echo '[O] http://localhost:80/'
|
||||
else
|
||||
echo '[X] http://localhost:80/'
|
||||
exit 1
|
||||
fi
|
||||
curl -sIk https://localhost:443/ | grep -i WordPress
|
||||
if [ ${?} = 0 ]; then
|
||||
echo '[O] https://localhost:443/'
|
||||
else
|
||||
echo '[X] https://localhost:443/'
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
verify_phpadmin(){
|
||||
curl -sIk http://localhost:8080/ | grep -i phpMyAdmin
|
||||
if [ ${?} = 0 ]; then
|
||||
echo '[O] http://localhost:8080/'
|
||||
else
|
||||
echo '[X] http://localhost:8080/'
|
||||
exit 1
|
||||
fi
|
||||
curl -sIk https://localhost:8443/ | grep -i phpMyAdmin
|
||||
if [ ${?} = 0 ]; then
|
||||
echo '[O] http://localhost:8443/'
|
||||
else
|
||||
echo '[X] http://localhost:8443/'
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
main(){
|
||||
verify_lsws
|
||||
verify_phpadmin
|
||||
install_demo
|
||||
verify_page
|
||||
}
|
||||
main
|
||||
@@ -35,6 +35,7 @@ The docker image installs the following packages on your system:
|
||||
|LiteSpeed Cache|[Latest from WordPress.org](https://wordpress.org/plugins/litespeed-cache/)|
|
||||
|Certbot|[Latest from Certbot's PPA](https://launchpad.net/~certbot/+archive/ubuntu/certbot)|
|
||||
|WordPress|[Latest from WordPress](https://wordpress.org/download/)|
|
||||
|phpMyAdmin|[Latest from dockerhub](https://hub.docker.com/r/bitnami/phpmyadmin/)|
|
||||
|
||||
## Data Structure
|
||||
There is a `sites` directory next to your `docker-compose.yml` file, and it contains the following:
|
||||
@@ -117,7 +118,7 @@ bash bin/webadmin.sh -lsup
|
||||
```
|
||||
|
||||
### Accessing the Database
|
||||
After installation, you can use Adminer (formerly phpMinAdmin) to access the database by visiting http://127.0.0.1:8080. The default username is `root`, and the password is the same as the one you supplied in the `.env` file.
|
||||
After installation, you can use phpMinAdmin to access the database by visiting http://127.0.0.1:8080 or https://127.0.0.1:8443. The default username is `root`, and the password is the same as the one you supplied in the `.env` file.
|
||||
|
||||
## Support & Feedback
|
||||
If you still have a question after using OpenLiteSpeed Docker, you have a few options.
|
||||
|
||||
Reference in New Issue
Block a user