mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
vendor files
This commit is contained in:
1
vendor/k8s.io/kubernetes/examples/phabricator/README.md
generated
vendored
Normal file
1
vendor/k8s.io/kubernetes/examples/phabricator/README.md
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
This file has moved to [https://github.com/kubernetes/examples/blob/master/staging/phabricator/README.md](https://github.com/kubernetes/examples/blob/master/staging/phabricator/README.md)
|
51
vendor/k8s.io/kubernetes/examples/phabricator/phabricator-controller.json
generated
vendored
Normal file
51
vendor/k8s.io/kubernetes/examples/phabricator/phabricator-controller.json
generated
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
"kind": "ReplicationController",
|
||||
"apiVersion": "v1",
|
||||
"metadata": {
|
||||
"name": "phabricator-controller",
|
||||
"labels": {
|
||||
"name": "phabricator"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"replicas": 1,
|
||||
"selector": {
|
||||
"name": "phabricator"
|
||||
},
|
||||
"template": {
|
||||
"metadata": {
|
||||
"labels": {
|
||||
"name": "phabricator"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"containers": [
|
||||
{
|
||||
"name": "phabricator",
|
||||
"image": "fgrzadkowski/example-php-phabricator",
|
||||
"ports": [
|
||||
{
|
||||
"name": "http-server",
|
||||
"containerPort": 80
|
||||
}
|
||||
],
|
||||
"env": [
|
||||
{
|
||||
"name": "MYSQL_SERVICE_IP",
|
||||
"value": "1.2.3.4"
|
||||
},
|
||||
{
|
||||
"name": "MYSQL_SERVICE_PORT",
|
||||
"value": "3306"
|
||||
},
|
||||
{
|
||||
"name": "MYSQL_PASSWORD",
|
||||
"value": "1234"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
19
vendor/k8s.io/kubernetes/examples/phabricator/phabricator-service.json
generated
vendored
Normal file
19
vendor/k8s.io/kubernetes/examples/phabricator/phabricator-service.json
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"kind": "Service",
|
||||
"apiVersion": "v1",
|
||||
"metadata": {
|
||||
"name": "phabricator"
|
||||
},
|
||||
"spec": {
|
||||
"ports": [
|
||||
{
|
||||
"port": 80,
|
||||
"targetPort": "http-server"
|
||||
}
|
||||
],
|
||||
"selector": {
|
||||
"name": "phabricator"
|
||||
},
|
||||
"type": "LoadBalancer"
|
||||
}
|
||||
}
|
12
vendor/k8s.io/kubernetes/examples/phabricator/php-phabricator/000-default.conf
generated
vendored
Normal file
12
vendor/k8s.io/kubernetes/examples/phabricator/php-phabricator/000-default.conf
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<Directory /home/www-data/phabricator/webroot>
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<VirtualHost *>
|
||||
DocumentRoot /home/www-data/phabricator/webroot
|
||||
|
||||
RewriteEngine on
|
||||
RewriteRule ^/rsrc/(.*) - [L,QSA]
|
||||
RewriteRule ^/favicon.ico - [L,QSA]
|
||||
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
|
||||
</VirtualHost>
|
44
vendor/k8s.io/kubernetes/examples/phabricator/php-phabricator/Dockerfile
generated
vendored
Normal file
44
vendor/k8s.io/kubernetes/examples/phabricator/php-phabricator/Dockerfile
generated
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
# Copyright 2016 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM ubuntu:14.04
|
||||
|
||||
# Install all the required packages.
|
||||
RUN apt-get update && \
|
||||
apt-get -y install \
|
||||
git apache2 dpkg-dev python-pygments \
|
||||
php5 php5-mysql php5-gd php5-dev php5-curl php-apc php5-cli php5-json php5-xhprof && \
|
||||
apt-get -y clean autoclean && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
#Configure php
|
||||
RUN a2enmod rewrite && \
|
||||
apt-get source php5 && \
|
||||
(cd `ls -1F | grep '^php5-.*/$'`/ext/pcntl && phpize && ./configure && make && sudo make install)
|
||||
|
||||
# Load code source.
|
||||
RUN mkdir /home/www-data
|
||||
RUN cd /home/www-data && git clone https://github.com/phacility/libphutil.git && \
|
||||
cd /home/www-data && git clone https://github.com/phacility/arcanist.git && \
|
||||
cd /home/www-data && git clone https://github.com/phacility/phabricator.git && \
|
||||
chown -R www-data /home/www-data && \
|
||||
chgrp -R www-data /home/www-data
|
||||
|
||||
ADD 000-default.conf /etc/apache2/sites-available/000-default.conf
|
||||
ADD run.sh /run.sh
|
||||
RUN chmod a+x /*.sh
|
||||
|
||||
# Run Apache2.
|
||||
EXPOSE 80
|
||||
CMD ["/run.sh"]
|
28
vendor/k8s.io/kubernetes/examples/phabricator/php-phabricator/run.sh
generated
vendored
Executable file
28
vendor/k8s.io/kubernetes/examples/phabricator/php-phabricator/run.sh
generated
vendored
Executable file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright 2015 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
echo "MySQL host IP ${MYSQL_SERVICE_IP} port ${MYSQL_SERVICE_PORT}."
|
||||
/home/www-data/phabricator/bin/config set mysql.host $MYSQL_SERVICE_IP
|
||||
/home/www-data/phabricator/bin/config set mysql.port $MYSQL_SERVICE_PORT
|
||||
/home/www-data/phabricator/bin/config set mysql.pass $MYSQL_PASSWORD
|
||||
|
||||
echo "Running storage upgrade"
|
||||
/home/www-data/phabricator/bin/storage --force upgrade || exit 1
|
||||
|
||||
source /etc/apache2/envvars
|
||||
echo "Starting Apache2"
|
||||
apache2 -D FOREGROUND
|
||||
|
20
vendor/k8s.io/kubernetes/examples/phabricator/setup.sh
generated
vendored
Executable file
20
vendor/k8s.io/kubernetes/examples/phabricator/setup.sh
generated
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright 2015 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
echo "Create Phabricator replication controller" && kubectl create -f phabricator-controller.json
|
||||
echo "Create Phabricator service" && kubectl create -f phabricator-service.json
|
||||
echo "Create firewall rule" && gcloud compute firewall-rules create phabricator-node-80 --allow=tcp:80 --target-tags kubernetes-node
|
||||
|
20
vendor/k8s.io/kubernetes/examples/phabricator/teardown.sh
generated
vendored
Executable file
20
vendor/k8s.io/kubernetes/examples/phabricator/teardown.sh
generated
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright 2015 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
echo "Deleting Phabricator service" && kubectl delete -f phabricator-service.json
|
||||
echo "Deleting Phabricator replication controller" && kubectl delete rc phabricator-controller
|
||||
echo "Delete firewall rule" && gcloud compute firewall-rules delete -q phabricator-node-80
|
||||
|
Reference in New Issue
Block a user