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
# https://docs.docker.com/engine/reference/builder/ | |
# /home/jovyan/work | |
ARG BASE_CONTAINER=jupyter/minimal-notebook | |
FROM $BASE_CONTAINER | |
LABEL maintainer="Bruno Bronosky <bruno@bronosky.com>" | |
USER root | |
# Install all OS dependencies for fully functional notebook server | |
RUN pip install bash_kernel && python -m bash_kernel.install |
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
# Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file | |
# except in compliance with the License. A copy of the License is located at | |
# | |
# http://aws.amazon.com/apache2.0/ | |
# | |
# or in the "license" file accompanying this file. This file 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. |
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
minikube stop; minikube delete | |
docker stop (docker ps -aq) | |
rm -r ~/.kube ~/.minikube | |
sudo rm /usr/local/bin/localkube /usr/local/bin/minikube | |
systemctl stop '*kubelet*.mount' | |
sudo rm -rf /etc/kubernetes/ | |
docker system prune -af --volumes |
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
steps: | |
- name: gcr.io/kaniko-project/executor:latest | |
id: 'Build1' | |
args: ['--destination=$_IMAGE_NAME:$COMMIT_SHA','--destination=$_IMAGE_NAME:latest','--cache=true', '--dockerfile=$_IMAGE_DOCKERFILE_PATH'] | |
timeout: 500s | |
- name: "gcr.io/cloud-builders/gke-deploy" | |
id: 'Deploy' | |
args: | |
- run | |
- --filename=$_K8S_YAML_PATH |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
run: test-app | |
name: test-app-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
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 ubuntu:18.04 | |
RUN apt-get update | |
RUN apt-get install python3 -y | |
RUN apt-get install software-properties-common -y && apt-add-repository universe -y | |
RUN apt-get update | |
RUN apt-get install python3-pip -y | |
ADD ./main.py . | |
RUN pip3 install flask | |
CMD ["python3","main.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
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return 'Hello World! This is first commit!' | |
if __name__ == '__main__': | |
app.run(host='0.0.0.0') |
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 flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return 'Hello World! This is first commit!' | |
if __name__ == '__main__': | |
app.run(host='0.0.0.0') |
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 flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return 'Hello World! This is first commit!' | |
if __name__ == '__main__': | |
app.run(host='0.0.0.0') |
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 flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return 'Hello World! This is first commit!' | |
if __name__ == '__main__': | |
app.run(host='0.0.0.0') |
NewerOlder