Skip to content

Commit

Permalink
upgrade to ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
mingfunwong committed Jan 21, 2024
1 parent 386fd75 commit bb8fe9e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 162 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "ubuntu 24.04",
"image": "ubuntu:24.04"
}
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM ubuntu:latest
FROM ubuntu:24.04

WORKDIR /fibos
WORKDIR /app

RUN apt-get update -y \
&& apt-get install -y curl sudo wget libusb-1.0-0 libcurl3-gnutls libncurses5 \
&& apt-get install -y curl sudo wget libusb-1.0-0 libcurl3-gnutls \
&& wget "http://security.ubuntu.com/ubuntu/pool/main/n/ncurses/libtinfo5_6.1-1ubuntu1_amd64.deb" \
&& dpkg -i libtinfo5_6.1-1ubuntu1_amd64.deb \
&& rm libtinfo5_6.1-1ubuntu1_amd64.deb \
&& wget "http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb" \
&& dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb \
&& rm libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb \
Expand All @@ -20,4 +23,4 @@ ADD start.sh .

EXPOSE 8080

ENTRYPOINT ["bash", "/fibos/start.sh"]
ENTRYPOINT ["bash", "/app/start.sh"]
6 changes: 0 additions & 6 deletions build-docker-and-run.sh

This file was deleted.

42 changes: 0 additions & 42 deletions install-from-helm.sh

This file was deleted.

108 changes: 0 additions & 108 deletions k8s.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions start.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

SNAPSHOT_FOLDER=./data/snapshots

if [ "$SNAPSHOT_ENABLE" = "true" ]; then
if [ "$SNAPSHOT_ENABLE" != "false" ]; then

export SNAPSHOT_FILE=$SNAPSHOT_FOLDER/snapshot.bin
rm -rf ./data/*
Expand All @@ -22,4 +22,4 @@ if [ "$SNAPSHOT_ENABLE" = "true" ]; then
wget $SNAPSHOT_URL -O $SNAPSHOT_FILE
fi

fibos /fibos/start.js
fibos ./start.js

0 comments on commit bb8fe9e

Please sign in to comment.