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
package main | |
import ( | |
"errors" | |
"fmt" | |
"os" | |
"github.com/hashicorp/go-multierror" | |
"go.uber.org/zap" | |
"go.uber.org/zap/zapcore" |
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
package main | |
import ( | |
"errors" | |
"os" | |
) | |
// ===== Defines the custom error | |
type ValidationError struct { |
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
2020-06-04 14:03:04.281 INFO 1 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@722c41f4: startup date [Thu Jun 04 14:03:04 UTC 2020]; root of context hierarchy | |
2020-06-04 14:03:05.073 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$90ec60ed] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) | |
. ____ _ __ _ _ | |
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ | |
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ | |
\\/ ___)| |_)| | | | | || (_| | ) ) ) ) | |
' |____| .__|_| |_|_| |_\__, | / / / / | |
=========|_|==============|___/=/_/_/_/ | |
:: Spring Boot :: (v1.5.19.RELEASE) |
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
--- | |
- name: odo pre-reqs | |
gather_facts: false | |
hosts: localhost | |
tasks: | |
- name: Enable the API servers | |
command: "oc patch servicecatalogapiservers cluster --type=merge -p='{\"spec\": {\"managementState\": \"Managed\"}}'" | |
- name: Enable the controller managers |
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
--- | |
- name: odo pre-reqs | |
gather_facts: false | |
hosts: localhost | |
tasks: | |
- name: Enable the API servers | |
command: "oc patch servicecatalogapiservers cluster --type=merge -p='{\"spec\": {\"managementState\": \"Managed\"}}'" | |
- name: Enable the controller managers |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: hydra | |
spec: | |
volumes: | |
- name: shared-data | |
emptyDir: {} | |
containers: | |
- name: hydra1 |
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
FROM centos/python-36-centos7:latest | |
EXPOSE 8888 | |
# User setup for OpenShift | |
USER root | |
ENV HOME=/jupyter | |
RUN mkdir -p ${HOME}/notebooks && \ | |
useradd -u 9000 -r -g 0 -d ${HOME} -s /sbin/nologin \ | |
-c "Jupyter User" jupyter-user |
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
public void start(Future<Void> done) { | |
Single<DataGridClient> single = DataGridClient.create(vertx, new DataGridConfiguration() | |
.setHost("eventstore-dg-hotrod") | |
.setPort(11333)); | |
single.flatMap(client -> client.<String, String>getCache("users")) | |
.flatMap(cache -> cache.clear().andThen(Single.just(cache))) | |
.subscribe( | |
cache -> { | |
this.cache = cache; |
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
+ . /opt/app-root/src/jupyterhub_config.sh | |
++ CONFIGURATION_TYPE=learning-portal | |
++ '[' -f /opt/app-root/src/configs/learning-portal.sh ']' | |
++ . /opt/app-root/src/configs/learning-portal.sh | |
++ '[' -f /opt/app-root/configs/jupyterhub_config.sh ']' | |
++ . /opt/app-root/configs/jupyterhub_config.sh | |
+ trap 'kill -TERM $PID' TERM INT | |
+ PID=21 | |
+ wait 21 | |
+ jupyterhub -f /opt/app-root/src/jupyterhub_config.py |
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
+ . /opt/app-root/src/jupyterhub_config.sh | |
++ CONFIGURATION_TYPE=learning-portal | |
++ '[' -f /opt/app-root/src/configs/learning-portal.sh ']' | |
++ . /opt/app-root/src/configs/learning-portal.sh | |
++ '[' -f /opt/app-root/configs/jupyterhub_config.sh ']' | |
++ . /opt/app-root/configs/jupyterhub_config.sh | |
+ trap 'kill -TERM $PID' TERM INT | |
+ PID=21 | |
+ wait 21 | |
+ jupyterhub -f /opt/app-root/src/jupyterhub_config.py |
NewerOlder