-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
123 changed files
with
21,149 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi | ||
MAINTAINER sig-platform@spinnaker.io | ||
COPY ./gate-web/build/install/gate /opt/gate | ||
RUN yum -y install java-11-openjdk-headless.x86_64 wget vim | ||
RUN adduser spinnaker | ||
|
||
RUN mkdir -p /opt/gate/plugins | ||
USER spinnaker | ||
CMD ["/opt/gate/bin/gate"] | ||
FROM registry.access.redhat.com/ubi8/ubi | ||
MAINTAINER sig-platform@spinnaker.io | ||
COPY ./gate-web/build/install/gate /opt/gate | ||
RUN yum -y install java-11-openjdk-headless.x86_64 wget vim | ||
RUN adduser spinnaker | ||
|
||
RUN mkdir -p /opt/gate/plugins | ||
USER spinnaker | ||
CMD ["/opt/gate/bin/gate"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM ubuntu:bionic | ||
MAINTAINER sig-platform@spinnaker.io | ||
COPY gate-web/build/install/gate /opt/gate | ||
RUN apt-get update && apt-get -y install openjdk-8-jre-headless wget | ||
RUN adduser --disabled-login --system spinnaker | ||
RUN mkdir -p /opt/gate/plugins && chown -R spinnaker:nogroup /opt/gate/plugins | ||
USER spinnaker | ||
CMD ["/opt/gate/bin/gate"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi:latest | ||
MAINTAINER OpsMx | ||
# Add user opsmx and create logs and spinnaker config directory | ||
RUN adduser opsmx \ | ||
&& usermod -aG wheel opsmx \ | ||
&& mkdir /home/opsmx/logs \ | ||
&& mkdir -p /opt/spinnaker/config | ||
|
||
# Install procps(ps) | ||
RUN yum install -y procps | ||
# Install java 8 | ||
RUN yum install -y java-1.8.0-openjdk.x86_64 | ||
# Install ping | ||
RUN yum install -y iputils | ||
#######Gate Dependencies######### | ||
ENV WORK_DIR=/home/opsmx | ||
ENV JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk | ||
COPY /docker_build/run.sh /usr/local/bin/run.sh | ||
RUN chmod +x /usr/local/bin/run.sh | ||
COPY /docker_build/gate.yml /opt/spinnaker/config/ | ||
COPY /docker_build/startup.sh /home/opsmx/ | ||
RUN chmod +x /home/opsmx/startup.sh | ||
|
||
# === Copy Gate Build Files === | ||
COPY /gate-web/build/install/gate /home/opsmx/gate | ||
RUN chown -R opsmx:root ${WORK_DIR}/* /opt/* | ||
|
||
# === Start Gate Service === | ||
USER opsmx | ||
WORKDIR ${WORK_DIR} | ||
CMD ["run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
services: | ||
opsmx: | ||
baseUrl: http://oes-api:8085 | ||
enabled: true | ||
autopilot: | ||
baseUrl: http://localhost:8090 | ||
enabled: true | ||
platform: | ||
baseUrl: http://localhost:8095 | ||
userGroupApiPath: /platformservice/v1/users/{username}/usergroups/importAndCache | ||
enabled: true | ||
dashboard: | ||
baseUrl: http://localhost:8094 | ||
enabled: true | ||
visibility: | ||
baseUrl: http://localhost:8096 | ||
enabled: true | ||
oesui: | ||
externalUrl: http://150.238.22.102 | ||
security: | ||
basic: | ||
enabled: true | ||
user: {} | ||
cors: | ||
allowed-origins-pattern: ^https?://(?:localhost|137.117.94.95)(?::[1-9]\d*)?/? | ||
ldap: | ||
enabled: true | ||
url: ldap://localhost:389/DC=example,DC=com | ||
userDnPattern: uid={0},ou=people | ||
file: | ||
enabled: false | ||
url: /platformservice/v1/users/authenticate | ||
authn: | ||
mode: session | ||
google: {} | ||
logging: | ||
level: | ||
com.netflix.spinnaker.gate.security: DEBUG | ||
org.springframework.security: DEBUG | ||
org.springframework.web: DEBUG | ||
|
||
redis: | ||
connection: redis://spin-redis:6379 | ||
|
||
server: | ||
session: | ||
timeout-in-seconds: 7200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi:latest | ||
MAINTAINER OpsMx | ||
|
||
# Add user opsmx and create logs | ||
RUN adduser opsmx \ | ||
&& mkdir /home/opsmx/logs | ||
|
||
# Install procps(ps) | ||
RUN yum install -y procps | ||
# Install java 8 | ||
RUN yum install -y java-1.8.0-openjdk.x86_64 | ||
|
||
# Install redis 5 and its dependencies | ||
RUN yum install -y wget | ||
RUN yum install -y gcc | ||
RUN yum install -y make | ||
|
||
#######Redis Dependencies######### | ||
ENV WORK_DIR=/home/opsmx | ||
ENV JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk | ||
COPY /docker_build/redis/run.sh /usr/local/bin/run.sh | ||
RUN chmod +x /usr/local/bin/run.sh | ||
COPY /docker_build/redis/startup.sh /home/opsmx/ | ||
RUN chmod +x /home/opsmx/startup.sh | ||
RUN chown -R opsmx:root ${WORK_DIR}/* | ||
|
||
# === Start Redis Service === | ||
USER opsmx | ||
WORKDIR ${WORK_DIR} | ||
RUN wget http://download.redis.io/releases/redis-6.0.1.tar.gz | ||
RUN tar xzf redis-6.0.1.tar.gz | ||
WORKDIR redis-6.0.1 | ||
RUN sed -i -e "s|bind 127.0.0.1|bind 0.0.0.0|" /home/opsmx/redis-6.0.1/redis.conf | ||
RUN sed -i -e "s|protected-mode yes|protected-mode no|" /home/opsmx/redis-6.0.1/redis.conf | ||
RUN make | ||
WORKDIR ${WORK_DIR} | ||
CMD ["run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
${WORK_DIR}/redis-6.0.1/src/redis-server ${WORK_DIR}/redis-6.0.1/redis.conf | tee ${WORK_DIR}/logs/redis.log | ||
|
||
cd ${WORK_DIR} | ||
sleep 10 | ||
|
||
while : | ||
do | ||
sleep 100 | ||
# For Debugging, Docker should alive! | ||
done | ||
echo "redis services started ..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
REDISID=`ps -ef | grep redis-server | grep -v grep | awk '{print $2}'` | ||
|
||
echo "Redis Id : " $REDISID | ||
if [ "" != "$REDISID" ]; then | ||
kill -9 $REDISID | ||
echo "Redis service killed.Starting a new one." | ||
else | ||
echo "No Redis service killed.Starting a new one." | ||
fi | ||
sleep 5 | ||
${WORK_DIR}/redis-6.0.1/src/redis-server ${WORK_DIR}/redis-6.0.1/redis.conf | tee ${WORK_DIR}/logs/redis.log | ||
echo "Redis service Started" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
${WORK_DIR}/gate/bin/gate | tee ${WORK_DIR}/logs/gate.log | ||
|
||
cd ${WORK_DIR} | ||
sleep 10 | ||
|
||
while : | ||
do | ||
sleep 100 | ||
# For Debugging, Docker should alive! | ||
done | ||
|
||
echo "gate services started ..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
GATEID=`ps -ef | grep java | grep -v grep | awk '{print $2}'` | ||
|
||
echo "Gate Id : " $GATEID | ||
if [ "" != "$GATEID" ]; then | ||
kill -9 $GATEID | ||
echo "Gate service killed.Starting a new one." | ||
else | ||
echo "No Gate service.Starting a new one." | ||
fi | ||
sleep 5 | ||
${WORK_DIR}/gate/bin/gate | tee ${WORK_DIR}/logs/gate.log | ||
echo "Gate service Started" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.