Skip to content

Instantly share code, notes, and snippets.

View OtherDevOpsGene's full-sized avatar

Gene Gotimer OtherDevOpsGene

View GitHub Profile
@OtherDevOpsGene
OtherDevOpsGene / keybase.md
Created October 4, 2017 18:43
Keybase.io verification

Keybase proof

I hereby claim:

  • I am gotimer on github.
  • I am genegotimer (https://keybase.io/genegotimer) on keybase.
  • I have a public key whose fingerprint is 4330 2F2E 58F1 B6D3 7872 5B14 B6C3 B41F 5433 8B9D

To claim this, I am signing this object:

@OtherDevOpsGene
OtherDevOpsGene / InstallCert.java
Created April 16, 2018 19:28
Installs a certificate in the cacerts
/*
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
package com.coveros.benchmark;
import java.math.BigInteger;
import java.util.Date;
public class Prime {
private static final int certainty = 100;
public static void main(final String[] args) {
# set the commiter name and email (which will match the GPG key)
git config --global user.name "Gene Gotimer"
git config --global user.email otherdevopsgene@portinfo.com
# only push the branch you are on, and only if the name on the remote is the same
git config --global push.default simple
# delete local copies of deleted remote branches
git config --global fetch.prune true
@OtherDevOpsGene
OtherDevOpsGene / Dockerfile
Created September 15, 2019 19:58
Simple Dockerfile for Docker Workshop
FROM ubuntu:latest
RUN apt-get update && apt-get install -y fortune
CMD /usr/games/fortune
@OtherDevOpsGene
OtherDevOpsGene / Dockerfile
Last active November 1, 2020 19:24
Bigger Dockerfile for Docker Workshop
FROM ubuntu:latest
RUN apt-get update && apt-get install -y --no-install-recommends \
default-jdk-headless maven git \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/OtherDevOpsGene/helloworld.git
WORKDIR helloworld
RUN mvn clean package
CMD ["java", "-cp", "/helloworld/target/helloworld-1.1.jar", \
"com.coveros.demo.helloworld.HelloWorld"]
@OtherDevOpsGene
OtherDevOpsGene / Dockerfile
Last active November 1, 2020 19:25
Bigger Dockerfile for Docker Workshop
FROM ubuntu:latest
RUN apt-get update && apt-get install -y --no-install-recommends \
default-jdk-headless maven git \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/OtherDevOpsGene/helloworld.git
WORKDIR helloworld
RUN mvn clean package
CMD ["java", "-cp", "/helloworld/target/helloworld-1.1.jar", \
"com.coveros.demo.helloworld.HelloWorld"]
@OtherDevOpsGene
OtherDevOpsGene / Dockerfile
Last active November 1, 2020 19:24
Smaller Dockerfile for Docker Workshop
FROM ubuntu:latest AS development
RUN apt-get update && apt-get install -y --no-install-recommends \
default-jdk-headless maven git \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/OtherDevOpsGene/helloworld.git
WORKDIR helloworld
RUN mvn clean package
FROM openjdk:alpine AS runtime
COPY --from=development /helloworld/target/helloworld-1.1.jar /
@OtherDevOpsGene
OtherDevOpsGene / run-maven.sh
Last active October 30, 2020 14:48
Docker command to compile and run the Selenium test
docker run -it --rm --name maven \
-v "$(pwd)":/usr/src/maven \
-v "$HOME/.m2":/root/.m2 \
--workdir /usr/src/maven \
--network selenium_default \
maven:3.6.3-jdk-13 \
mvn clean test -DtestUrl=http://44.55.66.77
@OtherDevOpsGene
OtherDevOpsGene / docker-workshop.sh
Last active October 30, 2020 14:58
Script to set up workstation for the Docker workshop
#! /bin/bash
# To set up an Ubuntu system as we used in the Docker tutorial,
# copy this script the the target system and run it as root:
# sudo bash ./docker-workshop.sh
# If you want to allow username/password log in, you may need to edit /etc/ssh/sshd_config
# Change
# PasswordAuthentication no
# to