Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f69af2e
Merge pull request #46 from bcgov/master
RobertGoesByJim Apr 17, 2018
515c3f4
Merge pull request #47 from bcgov/master
RobertGoesByJim Apr 19, 2018
c1ff79f
Merge pull request #48 from bcgov/master
RobertGoesByJim Apr 20, 2018
e174235
Merge pull request #49 from bcgov/master
RobertGoesByJim Apr 20, 2018
37e7da6
Merge pull request #50 from bcgov/master
RobertGoesByJim Apr 23, 2018
7309654
Merge pull request #51 from bcgov/master
RobertGoesByJim Apr 23, 2018
2058b2d
Merge pull request #52 from bcgov/master
RobertGoesByJim Apr 23, 2018
c964f1b
Merge pull request #53 from bcgov/master
RobertGoesByJim Apr 23, 2018
6cd3906
Merge pull request #54 from bcgov/master
RobertGoesByJim Apr 23, 2018
f44e58a
Merge pull request #55 from bcgov/master
RobertGoesByJim Apr 23, 2018
274489d
Merge pull request #57 from bcgov/master
RobertGoesByJim Apr 30, 2018
e606b0d
Merge pull request #58 from bcgov/master
RobertGoesByJim Apr 30, 2018
dcd8cf9
Merge pull request #59 from bcgov/master
RobertGoesByJim Apr 30, 2018
bfbee85
Merge pull request #60 from bcgov/master
RobertGoesByJim May 2, 2018
853d025
Merge pull request #61 from bcgov/master
RobertGoesByJim May 22, 2018
8f9bb72
Update search.html
agehlers Jun 29, 2018
5a83636
Update search.html
agehlers Jun 29, 2018
623396e
Update Gemfile
agehlers Jun 29, 2018
58f8e71
Update Gemfile
agehlers Jun 29, 2018
18be60a
pipeline config
Jul 25, 2018
b431c13
update Jenkins build stage
Jul 25, 2018
8909225
remove unused s2i folder
Jul 25, 2018
6d20712
Merge branch 'develop' of github.com-fw:bcgov/digital-toolkit into de…
Jul 25, 2018
abf3d4a
update the github trigger branch to os-pages according to readme
Jul 25, 2018
7baf0b8
Merge pull request #65 from bcgov/develop
ShellyXueHan Jul 25, 2018
782b0c9
Update README.md
ShellyXueHan Jul 25, 2018
7b42cb5
Update aged-out.md
RobertGoesByJim Aug 8, 2018
2d4283c
Merge pull request #62 from bcgov/master
RobertGoesByJim Aug 15, 2018
75cd47e
Merge pull request #67 from bcgov/master
RobertGoesByJim Dec 12, 2018
cc323ce
Merge pull request #68 from bcgov/master
RobertGoesByJim Jan 29, 2019
f654440
Merge pull request #69 from bcgov/master
RobertGoesByJim Feb 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .s2i/bin/assemble

This file was deleted.

11 changes: 0 additions & 11 deletions .s2i/bin/run

This file was deleted.

2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ node('master') {
// run the oc build to package the artifacts into a docker image
openshiftBuild bldCfg: APP_NAME, showBuildLogs: 'true', verbose: 'true'

// openshiftBuild bldCfg: CADDY_BUILD_CONFIG, showBuildLogs: 'true', verbose: 'true'
openshiftBuild bldCfg: CADDY_BUILD_CONFIG, showBuildLogs: 'true', verbose: 'true'

// Don't tag with BUILD_ID so the pruner can do it's job; it won't delete tagged images.
// Tag the images for deployment based on the image's hash
Expand Down
2 changes: 1 addition & 1 deletion _in-practice-examples/aged-out.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ example-of: Put your user and their needs at the centre of your design

### Impact

Agedout.com uses modern, interactive technology to guide users through “Quests.” As the youth proceed through the quests, they earn badges for their learning. Youth are then able to put the badges towards real life rewards, such as computers from Best Buy. \[Metrics forthcoming.\] This approach has the potential to expand to other Ministries, the Quests functionality and methodology being shared with partners in an example of gov-as-a-platform.
Agedout.com uses modern, interactive technology to guide users through “Quests.” As the youth proceed through the quests, they earn badges for their learning. Youth are then able to put the badges towards real life rewards, such as computers from Best Buy. \[Metrics forthcoming.\] This approach has the potential to expand to other Ministries, the Quests functionality and methodology being shared with partners in an example of gov-as-a-platform...

### Partners

Expand Down
2 changes: 1 addition & 1 deletion openshift/templates/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Deployment Flow:

Update in the `develop` branch will trigger Jenkins pipeline:
Update in the `os-pages` branch will trigger Jenkins pipeline:
1. Checkout the source from Github
2. Build images:

Expand Down
42 changes: 9 additions & 33 deletions openshift/templates/digital-toolkit-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@
"name": "innovation-toolkit",
"creationTimestamp": null
},
"labels": {
"template":"toolkit-jekyll"
},
"objects": [
{
"kind": "BuildConfig",
"apiVersion": "v1",
"metadata": {
"name": "${NAME}-jekyll${NAME_SUFFIX}",
"name": "innovation-toolkit",
"creationTimestamp": null,
"labels": {
"app": "${APP_NAME}"
"app": "innovation-toolkit"
},
"annotations": {
"openshift.io/generated-by": "OpenShiftNewApp"
Expand Down Expand Up @@ -49,22 +46,22 @@
"type": "Git",
"git": {
"uri": "https://github.com/bcgov/digital-toolkit.git",
"ref": "develop"
"ref": "os-pages"
}
},
"strategy": {
"type": "Docker",
"dockerStrategy": {
"from": {
"kind": "ImageStreamTag",
"name": "ruby:2.3.0-alpine"
"name": "docker-registry.default.svc:5000/ocio-guides-tools/ruby:2.3.0-alpine"
}
}
},
"output": {
"to": {
"kind": "ImageStreamTag",
"name": "${NAME}-jekyll${NAME_SUFFIX}:latest"
"name": "innovation-toolkit-jekyll:latest"
}
},
"resources": {
Expand All @@ -88,11 +85,11 @@
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "${NAME}",
"name": "innovation-toolkit-jekyll",
"generation": 1,
"creationTimestamp": null,
"labels": {
"app": "${APP_NAME}"
"app": "innovation-toolkit"
},
"annotations": {
"openshift.io/generated-by": "OpenShiftNewApp"
Expand All @@ -108,7 +105,7 @@
"annotations": null,
"from": {
"kind": "DockerImage",
"name": "172.50.0.2:5000/guides/innovation-toolkit:latest"
"name": "172.50.0.2:5000/ocio-guides-tools/innovation-toolkit-jekyll:latest"
},
"generation": null,
"importPolicy": {},
Expand All @@ -122,26 +119,5 @@
"dockerImageRepository": ""
}
}
],
"parameters": [
{
"name": "APP_NAME",
"displayName": "Name",
"description": "Application name used for grouping objects in the openshift console. You should keep this as default unless your know what your doing.",
"required": true,
"value": "innovation-toolkit"
},{
"name": "NAME",
"displayName": "Name",
"description": "The name assigned to all of the objects defined in this template. You should keep this as default unless your know what your doing.",
"required": true,
"value": "innovation-toolkit"
},{
"name": "NAME_SUFFIX",
"displayName": "Name",
"description": "The suffix for all created objects",
"required": false,
"value": ""
}
]
}
}
6 changes: 3 additions & 3 deletions openshift/templates/digital-toolkit-caddy-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
"runPolicy": "Serial",
"source": {
"type": "Dockerfile",
"dockerfile": "FROM bcgov-s2i-caddy\nCOPY _site /var/www/html/",
"dockerfile": "FROM bcgov-s2i-caddy\nCOPY /toolkit/_site /var/www/html/",
"images": [
{
"from": {
"kind": "ImageStreamTag",
"name": "${NAME}-jekyll${NAME_SUFFIX}:latest"
"name": "innovation-toolkit-jekyll:latest"
},
"paths": [
{
"sourcePath": "/opt/app-root/src/_site",
"sourcePath": "/toolkit",
"destinationDir": "./"
}
]
Expand Down
142 changes: 142 additions & 0 deletions openshift/templates/digital-toolkit-deploy-prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"kind": "Template",
"apiVersion": "v1",
"metadata": {
"name": "innovation-toolkit-caddy",
"creationTimestamp": null
},
"objects": [
{
"kind": "DeploymentConfig",
"apiVersion": "v1",
"metadata": {
"name": "innovation-toolkit-caddy",
"generation": 1,
"creationTimestamp": null,
"labels": {
"app": "innovation-toolkit-caddy"
},
"annotations": {
"openshift.io/generated-by": "OpenShiftWebConsole"
}
},
"spec": {
"strategy": {
"type": "Rolling",
"rollingParams": {
"updatePeriodSeconds": 1,
"intervalSeconds": 1,
"timeoutSeconds": 600,
"maxUnavailable": "25%",
"maxSurge": "25%"
},
"resources": {},
"activeDeadlineSeconds": 21600
},
"triggers": [
{
"type": "ConfigChange"
},
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"innovation-toolkit-caddy"
],
"from": {
"kind": "ImageStreamTag",
"namespace": "ocio-guides-tools",
"name": "innovation-toolkit-caddy:prod"
}
}
}
],
"replicas": 1,
"test": false,
"selector": {
"app": "innovation-toolkit-caddy",
"deploymentconfig": "innovation-toolkit-caddy"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app": "innovation-toolkit-caddy",
"deploymentconfig": "innovation-toolkit-caddy"
},
"annotations": {
"openshift.io/generated-by": "OpenShiftWebConsole"
}
},
"spec": {
"containers": [
{
"name": "innovation-toolkit-caddy",
"image": "docker-registry.default.svc:5000/ocio-guides-tools/innovation-toolkit-caddy@sha256:b3cbedf2a2f40521a1dc94280f67a5d68635ce095f03f0b587b48b410919842b",
"args": [
"/tmp/scripts/run"
],
"ports": [
{
"containerPort": 2015,
"protocol": "TCP"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always"
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {},
"schedulerName": "default-scheduler"
}
}
},
"status": {
"latestVersion": 0,
"observedGeneration": 0,
"replicas": 0,
"updatedReplicas": 0,
"availableReplicas": 0,
"unavailableReplicas": 0
}
},
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "innovation-toolkit-caddy",
"creationTimestamp": null,
"labels": {
"app": "innovation-toolkit-caddy"
},
"annotations": {
"openshift.io/generated-by": "OpenShiftWebConsole"
}
},
"spec": {
"ports": [
{
"name": "2015-tcp",
"protocol": "TCP",
"port": 2015,
"targetPort": 2015
}
],
"selector": {
"deploymentconfig": "innovation-toolkit-caddy"
},
"type": "ClusterIP",
"sessionAffinity": "None"
},
"status": {
"loadBalancer": {}
}
}
]
}
Loading