add powerline to workspace (#2062)
This commit is contained in:
parent
1f22e86d92
commit
58d7d4fa0b
@ -631,12 +631,12 @@ docker-compose up -d metabase
|
|||||||
|
|
||||||
1) Boot the container `docker-compose up -d jenkins`. To enter the container type `docker-compose exec jenkins bash`.
|
1) Boot the container `docker-compose up -d jenkins`. To enter the container type `docker-compose exec jenkins bash`.
|
||||||
|
|
||||||
2) Go to `http://localhost:8090/` (if you didn't chanhed your default port mapping)
|
2) Go to `http://localhost:8090/` (if you didn't chanhed your default port mapping)
|
||||||
|
|
||||||
3) Authenticate from the web app.
|
3) Authenticate from the web app.
|
||||||
|
|
||||||
- Default username is `admin`.
|
- Default username is `admin`.
|
||||||
- Default password is `docker-compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword`.
|
- Default password is `docker-compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword`.
|
||||||
|
|
||||||
(To enter container as root type `docker-compose exec --user root jenkins bash`).
|
(To enter container as root type `docker-compose exec --user root jenkins bash`).
|
||||||
|
|
||||||
@ -1289,6 +1289,21 @@ To install CodeIgniter 3 on Laradock all you have to do is the following simple
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<a name="Install-Powerline"></a>
|
||||||
|
## Install Powerline
|
||||||
|
|
||||||
|
1 - Open the `.env` file and set `WORKSPACE_INSTALL_POWERLINE` and `WORKSPACE_INSTALL_PYTHON` to `true`.
|
||||||
|
|
||||||
|
2 - Run `docker-compose build workspace`, after the step above.
|
||||||
|
|
||||||
|
Powerline is required python
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Install-Symfony"></a>
|
<a name="Install-Symfony"></a>
|
||||||
## Install Symfony
|
## Install Symfony
|
||||||
@ -2104,7 +2119,7 @@ This error sometimes happens because your Laravel application isn't running on t
|
|||||||
|
|
||||||
## I get stuck when building nginx on `fetch http://mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz`
|
## I get stuck when building nginx on `fetch http://mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz`
|
||||||
|
|
||||||
As stated on [#749](https://github.com/laradock/laradock/issues/749#issuecomment-419652646), Already fixed,just set `CHANGE_SOURCE` to false.
|
As stated on [#749](https://github.com/laradock/laradock/issues/749#issuecomment-419652646), Already fixed,just set `CHANGE_SOURCE` to false.
|
||||||
|
|
||||||
## Custom composer repo packagist url and npm registry url
|
## Custom composer repo packagist url and npm registry url
|
||||||
|
|
||||||
|
@ -108,6 +108,7 @@ services:
|
|||||||
- TZ=${WORKSPACE_TIMEZONE}
|
- TZ=${WORKSPACE_TIMEZONE}
|
||||||
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
|
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
|
||||||
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
|
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
|
||||||
|
- INSTALL_POWERLINE=${WORKSPACE_INSTALL_POWERLINE}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
|
@ -121,6 +121,7 @@ WORKSPACE_INSTALL_LINUXBREW=false
|
|||||||
WORKSPACE_INSTALL_MC=false
|
WORKSPACE_INSTALL_MC=false
|
||||||
WORKSPACE_INSTALL_SYMFONY=false
|
WORKSPACE_INSTALL_SYMFONY=false
|
||||||
WORKSPACE_INSTALL_PYTHON=false
|
WORKSPACE_INSTALL_PYTHON=false
|
||||||
|
WORKSPACE_INSTALL_POWERLINE=false
|
||||||
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
|
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
|
||||||
WORKSPACE_INSTALL_IMAGEMAGICK=false
|
WORKSPACE_INSTALL_IMAGEMAGICK=false
|
||||||
WORKSPACE_INSTALL_TERRAFORM=false
|
WORKSPACE_INSTALL_TERRAFORM=false
|
||||||
|
@ -871,6 +871,23 @@ RUN if [ ${INSTALL_PYTHON} = true ]; then \
|
|||||||
&& python -m pip install --upgrade virtualenv \
|
&& python -m pip install --upgrade virtualenv \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# POWERLINE:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_POWERLINE=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_POWERLINE} = true ]; then \
|
||||||
|
if [ ${INSTALL_PYTHON} = true ]; then \
|
||||||
|
python -m pip install --upgrade powerline-status && \
|
||||||
|
echo "" >> /etc/bash.bashrc && \
|
||||||
|
echo ". /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh" >> /etc/bash.bashrc \
|
||||||
|
;fi \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
USER laradock
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# ImageMagick:
|
# ImageMagick:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user