Skip to content

Commit

Permalink
Change HTTPie installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dzeyelid committed Jul 25, 2023
1 parent bcb74a0 commit 92bf8fc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ FROM mcr.microsoft.com/devcontainers/base:jammy
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

# Install httpie
RUN curl -SsL https://packages.httpie.io/deb/KEY.gpg | gpg --dearmor -o /usr/share/keyrings/httpie.gpg \
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/httpie.gpg] https://packages.httpie.io/deb ./" > /etc/apt/sources.list.d/httpie.list \
&& apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y --no-install-recommends \
httpie \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "Ubuntu",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/python:1": {}
"ghcr.io/devcontainers/features/node:1": {}
},
"postCreateCommand": "bash ./.devcontainer/postCreateCommand.sh"
}
2 changes: 0 additions & 2 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/bash

npm install -g docsify-cli
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade httpie
7 changes: 3 additions & 4 deletions script/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ This repository has Visual Studio Code's development container configuration, so
- [Developing inside a Container using Visual Studio Code Remote Development](https://code.visualstudio.com/docs/remote/containers)
- [GitHub Codespaces Documentation - GitHub Docs](https://docs.github.com/codespaces)

The environment is based on Ubuntu 21.04 and includes:
The environment is based on Ubuntu 22.04 and includes:

- Bash
- Python 3.10
- Node.js 16.x
- Node.js 18.x
- `jq`
- `envsubst`
- `http` ([HTTPie](https://github.com/httpie/httpie))
- `http` ([HTTPie](https://httpie.io/))

### Local Configuration

Expand Down

0 comments on commit 92bf8fc

Please sign in to comment.