From 6aef491e7745cb530c6888b3c2ba1f80ad6b9893 Mon Sep 17 00:00:00 2001 From: Hugo Thunnissen Date: Thu, 9 Mar 2023 15:39:53 +0100 Subject: [PATCH] Add storj uplink, symfony cli and some email utilities --- Dockerfile | 11 ++++++++++- bash/bash_aliases | 1 + emacs/init.el | 2 +- main.go | 1 + 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8652910..5cdb788 100644 --- a/Dockerfile +++ b/Dockerfile @@ -130,7 +130,16 @@ RUN GOPATH=/usr/local/gopkg /bin/bash -c 'for package in \ # Protobuf RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install protobuf-compiler -RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install html2text wkhtmltopdf pandoc ispell idutch irussian ienglish-common +RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install html2text wkhtmltopdf pandoc ispell idutch irussian ienglish-common offlineimap3 maildir-utils + +RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install mariadb-client + +RUN curl -L https://github.com/storj/storj/releases/latest/download/uplink_linux_amd64.zip -o uplink_linux_amd64.zip && \ + unzip -o uplink_linux_amd64.zip && \ + install uplink /usr/local/bin/uplink + +RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | sudo -E bash +RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install symfony-cli ADD . /opt/workspace-repo WORKDIR /opt/workspace-repo diff --git a/bash/bash_aliases b/bash/bash_aliases index 024ba07..2fcdc93 100644 --- a/bash/bash_aliases +++ b/bash/bash_aliases @@ -13,6 +13,7 @@ elif [[ $TERM != 'dumb' ]]; then declare -gx TERM=xterm-256color fi +alias wr='workspace run' alias td='cd $(mktemp -d)' alias snr='echo 500759739' alias snr_vu='echo 2667409' diff --git a/emacs/init.el b/emacs/init.el index d5cc060..d3dccbb 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -196,7 +196,7 @@ (flycheck-add-mode 'javascript-eslint 'web-mode) (defun hugot-javascript-web-mode-hook () - (when (string-match "\\.js$" (buffer-name)) + (when (or (string-match "\\.svelte$" (buffer-name)) (string-match "\\.js$" (buffer-name))) (setq tab-width 2) (setq web-mode-markup-indent-offset 2) (setq web-mode-code-indent-offset 2) diff --git a/main.go b/main.go index 3cfd60f..fbcb05c 100644 --- a/main.go +++ b/main.go @@ -51,6 +51,7 @@ func AddUser(username string, uid string) error { commandArgs := []string{ "--uid", uid, "--user-group", + "--shell", "/bin/bash", username, }