Skip to content

Instantly share code, notes, and snippets.

@greyhoundforty
Created June 6, 2024 17:28
Show Gist options
  • Save greyhoundforty/5dccf2001b46aa8a5b099b5307fd104d to your computer and use it in GitHub Desktop.
Save greyhoundforty/5dccf2001b46aa8a5b099b5307fd104d to your computer and use it in GitHub Desktop.
Run oc adm registry mirror via Code Engine

Dockerfile

FROM ubuntu:22.04

WORKDIR /app

RUN apt-get update && \
    apt-get install -y -q --allow-unauthenticated \
    build-essential \
    git \
    curl \
    unzip \
    git \
    sudo
RUN useradd -m -s /bin/bash linuxbrew && \
    usermod -aG sudo linuxbrew &&  \
    mkdir -p /home/linuxbrew/.linuxbrew && \
    chown -R linuxbrew: /home/linuxbrew/.linuxbrew
USER linuxbrew
RUN NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

USER root
RUN chown -R linuxbrew: /home/linuxbrew/.linuxbrew

# Add Homebrew to PATH
ENV PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:${PATH}"

RUN brew install hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment