Skip to content

Instantly share code, notes, and snippets.

@BenHizak
BenHizak / benhizak_test.py
Last active September 29, 2024 16:53
Test for Project4 ML4T
# This script is shared with permission of our TAs for CS6601 ML4T Fall 2024
# it should help you compare the performance of DTLearner and LinRegLearner
import numpy as np
import matplotlib.pyplot as plt
from DTLearner import DTLearner
from LinRegLearner import LinRegLearner
import random as random #this is not needed if you rely on Numpy's random
import gen_data
@BenHizak
BenHizak / Dockerfile-lowercase
Last active September 16, 2019 11:36
Kaniko capital letter
# the name 'Library' causes a problem. but 'library' (lowercase) works fine
FROM python:3.7.2 AS library
FROM library
RUN echo "another line"
@BenHizak
BenHizak / Dockerfile
Last active September 9, 2019 17:16
Demo of variables dropped
ARG VERSION=3.7.2
FROM python:${VERSION}
RUN echo "this is a demo"
@BenHizak
BenHizak / Dockerfile
Last active August 19, 2019 15:13
Demo of Kaniko build
FROM google/cloud-sdk:256.0.0-alpine
RUN apk add --no-cache bash
RUN mkdir -p /usr/my_work_dir
COPY *.sh /usr/my_work_dir/
RUN ls -l /workspace/
RUN ls -l /usr/my_work_dir/
RUN bash /usr/my_work_dir/file1.sh
RUN bash /usr/my_work_dir/file2.sh
@BenHizak
BenHizak / Dockerfile
Last active August 17, 2019 15:47
Example of Failing Kaniko Cache
FROM google/cloud-sdk:256.0.0-alpine
COPY postgres_monitor /usr/bin
RUN apk add --no-cache \
jq=~1.6 \
py-pip=~18.1 \
postgresql-client=~11.5 && \
chmod +x /usr/bin/postgres_monitor
@BenHizak
BenHizak / Dockerfile
Created August 16, 2019 02:19
Example of Failing Kaniko Latest
FROM quay.io/roboll/helmfile:v0.79.1
# the same error was replicatd with later versions
@BenHizak
BenHizak / Dockerfile
Created August 16, 2019 01:57
Kaniko Debug Executor
FROM quay.io/roboll/helmfile:v0.79.1