Skip to content
Permalink
Browse files

Comment out go mod download, bring over apisnoop/kubemacs.yaml

  • Loading branch information
hh committed Jan 30, 2020
1 parent 0fc58ee commit 7221cc3f54757f4dd7d320cf5566663760c55541
Showing with 30 additions and 7 deletions.
  1. +1 −1 Dockerfile
  2. +2 −2 README.org
  3. +27 −4 kubemacs.yaml
@@ -94,7 +94,7 @@ USER ii
# RUN go get -u -v k8s.io/client-go/kubernetes@v0.17.0
# RUN go get -u -v k8s.io/client-go/tools/clientcmd@v0.17.0
RUN git clone --depth 1 https://github.com/cncf/apisnoop /home/ii/apisnoop
RUN cd /home/ii/apisnoop/org/tickets ; go mod download
# RUN cd /home/ii/apisnoop/org/tickets ; go mod download

# Ensure authentication to apisnoop postgres database
ENV PGUSER=apisnoop \
@@ -15,7 +15,7 @@ Using docker will reduce the setup and maintenance of sharing the core component
* Build

#+BEGIN_SRC tmate
IMAGE_TAG=gcr.io/apisnoop/kubemacs:0.9.21
IMAGE_TAG=gcr.io/apisnoop/kubemacs:0.9.23
docker build -t $IMAGE_TAG .
kind load docker-image --nodes kind-worker $IMAGE_TAG
#+END_SRC
@@ -32,7 +32,7 @@ kind load docker-image --nodes kind-worker $IMAGE_TAG
#+end_src
* dev-build loop
#+begin_src shell
IIDE=gcr.io/apisnoop/kubemacs:0.9.18
IIDE=gcr.io/apisnoop/kubemacs:0.9.23
PODNAME=$(kubectl -n kubemacs get pod --selector=app=kubemacs -o name | sed s:pod/::)
docker build -t $IIDE .
kind load docker-image $IIDE
@@ -24,6 +24,20 @@ metadata:
labels:
environment: production
---
apiVersion: v1
kind: Service
metadata:
name: kubemacs-tilt
namespace: kubemacs
spec:
type: ClusterIP
selector:
app: kubemacs
ports:
- name: "10350"
port: 10350
targetPort: 10350
---
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -42,15 +56,25 @@ spec:
serviceAccountName: admin-kubemacs
containers:
- name: kubemacs
image: gcr.io/apisnoop/kubemacs:0.9.21
image: gcr.io/apisnoop/kubemacs:0.9.23
env:
- name: TZ
value: "Pacific/Auckland"
- name: GIT_COMMITER_EMAIL
value: "ii@ii.coop"
- name: GIT_COMMITER_NAME
value: "ii coop in New Zealand"
- name: GIT_AUTHOR_EMAIL
value: "ii@ii.coop"
- name: GIT_AUTHOR_NAME
value: "ii coop in New Zealand"
volumeMounts:
- mountPath: '/home/ii/workspace'
name: kubemacs-hostpath
- name: docker
mountPath: /var/run/docker.sock
- name: host-tmp
mountPath: /tmp
volumes:
- name: kubemacs-hostpath
hostPath:
@@ -59,8 +83,7 @@ spec:
hostPath:
path: /var/run/docker.sock
type: Socket
- name: ssh-agent
- name: host-tmp
hostPath:
path: /var/run/ssh-agent.sock
type: Socket
path: /var/host/tmp

0 comments on commit 7221cc3

Please sign in to comment.
You can’t perform that action at this time.