Skip to content

Commit

Permalink
Add cloudsql
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedearing committed Apr 30, 2024
1 parent b152cb3 commit c9bc2e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ FROM docker.io/library/ubuntu:latest
ENV KAFKA_VERSION=3.7.0
RUN ln -snf /usr/share/zoneinfo/US/Pacific /etc/localtime && \
apt update && \
apt install -y zsh mariadb-client postgresql-client dnsutils netcat jq sshpass \
neovim curl awscli gnupg openjdk-21-jre-headless tcpdump rclone sysstat sudo && \
apt install -y zsh mariadb-client postgresql-client dnsutils netcat jq \
neovim curl awscli gnupg openjdk-21-jre-headless tcpdump rclone sysstat \
sudo sshpass cloudsql-proxy && \
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg && \
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list && \
apt update && \
Expand Down
21 changes: 0 additions & 21 deletions zshrc
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
bindkey -v

function mysql_setup() {
if [ -z "$MYSQL_USER" ]; then
return
fi

if [ -z "$MYSQL_PASSWORD" ]; then
return
fi

if [ -z "$MYSQL_HOST" ]; then
return
fi

cat <<-EOF > $HOME/.my.cnf
[client]
host=$MYSQL_HOST
user=$MYSQL_USER
password=$MYSQL_PASSWORD
EOF
}

0 comments on commit c9bc2e4

Please sign in to comment.