Skip to content

Commit

Permalink
update dependances and dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
j-z10 committed Oct 9, 2024
1 parent 2462900 commit d368c1e
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 150 deletions.
7 changes: 7 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ FROM mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
RUN apt-get update && \
apt-get install -y build-essential cmake git

# Install GmSSL
RUN git clone -b 'v3.1.1' --depth 1 https://github.com/guanzhi/GmSSL.git &&\
cd GmSSL && mkdir build && cd build &&\
cmake .. && make && make test && make install &&\
ldconfig

# Install poetry
RUN pip install poetry
8 changes: 2 additions & 6 deletions .devcontainer/post-attach.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/bin/bash
git clone -b 'v3.1.1' --depth 1 https://github.com/guanzhi/GmSSL.git
cd GmSSL && mkdir build && cd build && cmake ..
make && make test && sudo make install
sudo ldconfig

# check gmssl installed
gmssl version
rm -rf ./.venv
poetry install --sync --with dev,test
5 changes: 1 addition & 4 deletions .devcontainer/update.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/bash
# create virtual environment and install dependencies
rm -rf .venv
poetry install --sync --with dev
#!/bin/bash
Loading

0 comments on commit d368c1e

Please sign in to comment.