Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
status-site
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Iterations
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmytro Bogatov
status-site
Commits
42498b72
Verified
Commit
42498b72
authored
May 28, 2018
by
Dmytro Bogatov
💕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work so far.
parent
dc499535
Pipeline
#2487
failed with stages
in 6 minutes and 43 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
11 deletions
+54
-11
deployment/build-services.sh
deployment/build-services.sh
+7
-5
deployment/sources/service/deployment-database.yaml
deployment/sources/service/deployment-database.yaml
+36
-0
deployment/sources/service/deployment.yaml
deployment/sources/service/deployment.yaml
+0
-6
deployment/sources/volume-claim.yaml
deployment/sources/volume-claim.yaml
+11
-0
No files found.
deployment/build-services.sh
View file @
42498b72
...
...
@@ -26,20 +26,22 @@ do
mkdir
-p
services/
$service
cp
sources/service/
{
service,deployment
}
.yaml services/
$service
if
[
"
$service
"
!=
"database"
]
then
IMAGE
=
"dbogatov/status-site:
$service
-
$TAG
"
FILE
=
"deployment"
PORT
=
"80"
else
IMAGE
=
"postgres:9.6.3-alpine"
FILE
=
"deployment-database"
PORT
=
"5432"
fi
sed
-i
-e
"s#__NAME__#
$service
#g"
services/
$service
/
{
service,deployment
}
.yaml
sed
-i
-e
"s#__IMAGE__#
$IMAGE
#g"
services/
$service
/
{
service,deployment
}
.yaml
sed
-i
-e
"s#__PORT__#
$PORT
#g"
services/
$service
/
{
service,deployment
}
.yaml
cp
sources/service/
{
service,
$FILE
}
.yaml services/
$service
sed
-i
-e
"s#__NAME__#
$service
#g"
services/
$service
/
{
service,
$FILE
}
.yaml
sed
-i
-e
"s#__IMAGE__#
$IMAGE
#g"
services/
$service
/
{
service,
$FILE
}
.yaml
sed
-i
-e
"s#__PORT__#
$PORT
#g"
services/
$service
/
{
service,
$FILE
}
.yaml
done
...
...
deployment/sources/service/deployment-database.yaml
0 → 100644
View file @
42498b72
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
name
:
__NAME__
namespace
:
status-site
labels
:
application
:
__NAME__
spec
:
replicas
:
1
selector
:
matchLabels
:
application
:
__NAME__
template
:
metadata
:
labels
:
application
:
__NAME__
spec
:
containers
:
-
name
:
__NAME__
image
:
__IMAGE__
imagePullPolicy
:
Always
volumeMounts
:
-
name
:
database-persistent-storage
mountPath
:
/var/lib/postgresql/data
env
:
-
name
:
POSTGRES_DB
value
:
"
statussite"
-
name
:
POSTGRES_USER
value
:
"
statususer"
-
name
:
POSTGRES_PASSWORD
value
:
"
relyOn1InternalSwarmNetwork"
volumes
:
-
name
:
database-persistent-storage
persistentVolumeClaim
:
claimName
:
database-pv-claim
deployment/sources/service/deployment.yaml
View file @
42498b72
...
...
@@ -24,12 +24,6 @@ spec:
-
name
:
appsettings
mountPath
:
"
/run/secrets/"
env
:
-
name
:
POSTGRES_DB
value
:
"
statussite"
-
name
:
POSTGRES_USER
value
:
"
statususer"
-
name
:
POSTGRES_PASSWORD
value
:
"
relyOn1InternalSwarmNetwork"
-
name
:
ASPNETCORE_ENVIRONMENT
value
:
"
Production"
volumes
:
...
...
deployment/sources/volume-claim.yaml
0 → 100644
View file @
42498b72
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
database-pv-claim
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
5Gi
---
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment