-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from leaf-ai/feature/142_makisu_experiment
Feature/142 makisu experiment
- Loading branch information
Showing
21 changed files
with
298 additions
and
149 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 |
---|---|---|
|
@@ -25,3 +25,4 @@ clusters | |
|
||
#Autogenerated licenses manifest | ||
licenses.manifest | ||
registry.yaml |
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
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
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 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: imagebuilder | ||
namespace: {{ .Namespace }} | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: makisu | ||
image: gcr.io/makisu-project/makisu:v0.1.9 | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- build | ||
- --push=index.docker.io | ||
- --modifyfs=true | ||
- -t=leafai/studio-go-runner:{{.duat.version}} | ||
- --registry-config=/registry-config/registry.yaml | ||
- /makisu-context | ||
volumeMounts: | ||
- name: context | ||
mountPath: /makisu-context | ||
- name: registry-config | ||
mountPath: /registry-config | ||
- name: storage | ||
mountPath: /makisu-storage | ||
volumes: | ||
- name: context | ||
persistentVolumeClaim: | ||
# Name of the PVC created earlier | ||
claimName: build-pv-claim | ||
- name: registry-config | ||
secret: | ||
secretName: docker-registry-config | ||
- name: storage | ||
emptyDir: {} |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
FROM ubuntu:16.04 | ||
LABEL maintainer "[email protected]" | ||
|
||
RUN \ | ||
apt-get update && \ | ||
RUN apt-get update && \ | ||
apt-get install -y locales && \ | ||
apt-get install -y language-pack-en && \ | ||
update-locale "en_US.UTF-8" && \ | ||
|
@@ -64,17 +62,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
libzmq3-dev \ | ||
pkg-config \ | ||
software-properties-common \ | ||
unzip \ | ||
&& \ | ||
unzip && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y python python-pip python3 python3-pip python3-dev python-dev git lshw && \ | ||
pip install --upgrade pip==9.0.3 setuptools | ||
|
||
RUN \ | ||
apt-get -y install libssl-dev libcurl4-openssl-dev libsm6 libxrender-dev libxext-dev && \ | ||
RUN apt-get -y install libssl-dev libcurl4-openssl-dev libsm6 libxrender-dev libxext-dev && \ | ||
pip install tensorflow-gpu==1.4.1 && \ | ||
pip install tensorflow-gpu==1.8.0 && \ | ||
pip install tensorflow-gpu==1.9.0 && \ | ||
|
@@ -96,16 +92,16 @@ LABEL vendor="Sentient Technologies INC" \ | |
ai.sentient.module.name=studio-go-runner | ||
|
||
# Add support for richer terminals to aid debugging etc | ||
RUN mkdir -p /lib/terminfo/x | ||
RUN mkdir -p /usr/local/share/terminfo/x | ||
RUN mkdir -p /lib/terminfo/x && \ | ||
mkdir -p /usr/local/share/terminfo/x | ||
COPY add-ons/termite.terminfo /usr/local/share/terminfo/x/xterm-termite | ||
COPY add-ons/termite.terminfo /lib/terminfo/x/xterm-termite | ||
|
||
# Prometheus instrumented port | ||
EXPOSE 9090 | ||
|
||
COPY run.sh /runner/. | ||
COPY bin/runner-linux-amd64 /runner/. | ||
COPY bin/runner-linux-amd64-cpu /runner/. | ||
COPY run.sh /runner/run.sh | ||
COPY bin/runner-linux-amd64 /runner/runner-linux-amd64 | ||
COPY bin/runner-linux-amd64-cpu /runner/runner-linux-amd64-cpu | ||
|
||
CMD /bin/bash -C ./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
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.