Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
version: "3"
build:
steps:
- type: apt-get
name: Install Pre-requisites
packages: ["libc6", "libgcc1", "libgssapi-krb5-2", "libicu70", "liblttng-ust1", "libssl3", "libstdc++6", "libunwind8", "zlib1g"]
- type: apt-get
packages: ["dotnet-sdk-8.0", "aspnetcore-runtime-8.0"]
version: "3"
build:
steps:
- type: apt-get
packages: ["gcc"]
version: "3"
build:
steps:
- type: apt-get
packages: ["g++"]
version: "3"
build:
steps:
- type: apt-get
packages: ["wget"]
- type: command
command: |
# detect architecture
ARCH=$(uname -m)
if [ "$ARCH" == "x86_64" ]; then
GO_ARCH="amd64"
elif [ "$ARCH" == "aarch64" ]; then
GO_ARCH="arm64"
else
echo "Unsupported architecture: $ARCH"
exit 1
fi
GO_VERSION="1.22.2"
# download and install Go
wget https://go.dev/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
tar -C /usr/local -xzf go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
rm -rf go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
# environment variables for DX
echo 'export GOPATH=/home/devzero/go' | tee /etc/profile.d/go-installation.sh
echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' | tee -a /etc/profile.d/go-installation.sh
user: root
version: "3"
build:
steps:
- type: apt-get
packages: ["build-essential", "curl", "git", "nano", "software-properties-common", "ssh", "sudo", "tar", "unzip", "vim", "wget", "zip"]
- type: command
command: |
sudo apt update
sudo apt upgrade -y
DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true TZ=Etc/UTC sudo -E apt install php -y
sudo apt install php-mysql php-curl php-json php-cgi php-cli php-xml php-gd php-mbstring php-zip -y
sudo apt install libapache2-mod-php -y
directory: /home/devzero
user: devzero
version: "3"
build:
steps:
- type: apt-get
packages: ["wget", "unzip"]
- type: command
command: |
wget https://storage.googleapis.com/dart-archive/channels/stable/release/3.4.3/sdk/dartsdk-linux-x64-release.zip
unzip -d /usr/local/dart dartsdk-linux-x64-release.zip
rm -rf dartsdk-linux-x64-release.zip
echo 'export PATH=$PATH:/usr/local/dart/dart-sdk/bin' | tee -a /etc/profile.d/dart-installation.sh
chmod +x /etc/profile.d/dart-installation.sh
user: root
version: "3"
build:
steps:
- type: apt-get
packages: ["curl"]
- type: command
command: |
curl -s "https://get.sdkman.io" | bash
. "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java
version: "3"
build:
steps:
- type: apt-get
packages: ["curl", "unzip", "tar"]
- type: command
command: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
export NVM_DIR=$HOME/.nvm && [ -s $NVM_DIR/nvm.sh ] && \. $NVM_DIR/nvm.sh
nvm install 21.0.0
echo '. $HOME/.nvm/nvm.sh' >> $HOME/.bashrc
echo '. $HOME/.nvm/nvm.sh' >> $HOME/.zshrc
npm install --global yarn
version: "3"
build:
steps:
- type: apt-get
packages: ["libpq-dev", "libpython3.8-dev", "python3.8", "python3.8-venv", "software-properties-common"]
extra_repositories:
- repository: ppa:deadsnakes/ppa
- type: command
command: |
python3.8 -m venv venv
. venv/bin/activate
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
python get-pip.py
rm get-pip.py
To automatically enter a virtualenv
when you connect to a workspace, configure your .bashrc
file (see the last build step in the recipe below):
version: "3"
build:
steps:
- type: apt-get
packages: ["libpq-dev", "libpython3.8-dev", "python3.8", "python3.8-venv", "software-properties-common"]
extra_repositories:
- repository: ppa:deadsnakes/ppa
- type: command
command: |
python3.8 -m venv venv
. venv/bin/activate
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
python get-pip.py
rm get-pip.py
directory: /home/devzero
- type: command
command: |
python3.8 -m venv venv
echo "source /home/devzero/venv/bin/activate" >> /home/devzero/.bashrc
version: "3"
build:
steps:
- type: apt-get
packages: ["curl", "libssl-dev", "pkg-config"]
- type: command
command: |
curl -sSf https://sh.rustup.rs | sh -s -- -y
. $HOME/.cargo/env
rustup install 1.80.0
rustup default 1.80.0
version: "3"
build:
steps:
- type: apt-get
packages: ["autoconf", "build-essential", "curl", "git", "libdb-dev", "libffi-dev", "libgdbm-dev", "libmysqlclient-dev", "libncurses5-dev", "libpq-dev", "libreadline6-dev", "libsqlite3-dev", "libssl-dev", "libxml2-dev", "libxslt1-dev", "libyaml-dev", "patch", "procps", "tar", "unzip", "zlib1g-dev"]
- type: command
command: |
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash
eval "$(~/.rbenv/bin/rbenv init - bash)" && export PATH="$HOME/.rbenv/bin:$PATH"
rbenv install 3.3.1
rbenv global 3.3.1
echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' | sudo tee /etc/profile.d/ruby-installation.sh
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' | sudo tee -a /etc/profile.d/ruby-installation.sh
sudo chmod +x /etc/profile.d/ruby-installation.sh