Skip to content

Commit

Permalink
Merge pull request #52 from joaofazolo/development
Browse files Browse the repository at this point in the history
Bug fixes and add known issues
  • Loading branch information
rlaiola authored Mar 24, 2024
2 parents b06a476 + 2b0f8d8 commit cf91e89
Show file tree
Hide file tree
Showing 8 changed files with 592 additions and 38 deletions.
26 changes: 18 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- [How To Build It (For Development)](#how-to-build-it-for-development)
- [How To Publish It](#how-to-publish-it)
- [How To Contribute](#how-to-contribute)
- [Known Issues](#known-issues)
- [License](#license)
- [Support](#support)

Expand Down Expand Up @@ -140,8 +141,8 @@ To run the _boca-docker_ application built on top of different versions of Ubunt
Tag name | BOCA version | Ubuntu version | Code name | Architecture
-------- | ------------ | -------------- | --------- | ------------
`latest`, `1.2`, `1.2-jammy`, `1.2.0`, `1.2.0-jammy` | 1.5 | 22.04 LTS | Jammy Jellyfish | `amd64`, `arm/v7`, `arm64/v8`, `ppc64le`, `s390x`
`1.2-focal`, `1.2.0-focal` | 1.5 | 20.04 LTS | Focal Fossa | `amd64`, `arm/v7`, `arm64/v8`, `ppc64le`, `s390x`
`latest`, `1.2`, `1.2-jammy`, `1.2.2`, `1.2.2-jammy` | 1.5 | 22.04 LTS | Jammy Jellyfish | `amd64`, `arm/v7`, `arm64/v8`, `ppc64le`, `s390x`
`1.2-focal`, `1.2.2-focal` | 1.5 | 20.04 LTS | Focal Fossa | `amd64`, `arm/v7`, `arm64/v8`, `ppc64le`, `s390x`
`nightly`, `nightly-jammy` | 1.5 | 22.04 LTS | Jammy Jellyfish | `amd64`, `arm/v7`, `arm64/v8`, `ppc64le`, `s390x`
`nightly-focal` | 1.5 | 20.04 LTS | Focal Fossa | `amd64`, `arm/v7`, `arm64/v8`, `ppc64le`, `s390x`
Expand All @@ -167,6 +168,8 @@ For example, to use BOCA version 1.5 running on Ubuntu 20.04 LTS (Focal Fossa) o
### Deprecated Image Tags
The following image tags have been deprecated and are no longer receiving updates:
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
Expand Down Expand Up @@ -212,9 +215,9 @@ The following image tags have been deprecated and are no longer receiving update
```sh
docker images -a
# boca-base only necessary for development
# docker tag IMAGE_ID_BOCA_BASE ghcr.io/joaofazolo/boca-docker/boca-base:1.2.0
docker tag IMAGE_ID_BOCA_WEB ghcr.io/joaofazolo/boca-docker/boca-web:1.2.0
docker tag IMAGE_ID_BOCA_JAIL ghcr.io/joaofazolo/boca-docker/boca-jail:1.2.0
# docker tag IMAGE_ID_BOCA_BASE ghcr.io/joaofazolo/boca-docker/boca-base:1.2.2
docker tag IMAGE_ID_BOCA_WEB ghcr.io/joaofazolo/boca-docker/boca-web:1.2.2
docker tag IMAGE_ID_BOCA_JAIL ghcr.io/joaofazolo/boca-docker/boca-jail:1.2.2
```

* Log in into GitHub's Container Registry using your username and personal access token (details [here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry));
Expand All @@ -227,9 +230,9 @@ The following image tags have been deprecated and are no longer receiving update
```sh
# boca-base only necessary for development
# docker push ghcr.io/joaofazolo/boca-docker/boca-base:1.2.0
docker push ghcr.io/joaofazolo/boca-docker/boca-web:1.2.0
docker push ghcr.io/joaofazolo/boca-docker/boca-jail:1.2.0
# docker push ghcr.io/joaofazolo/boca-docker/boca-base:1.2.2
docker push ghcr.io/joaofazolo/boca-docker/boca-web:1.2.2
docker push ghcr.io/joaofazolo/boca-docker/boca-jail:1.2.2
```
## How To Contribute
Expand All @@ -247,6 +250,13 @@ Before submitting a PR consider building and testing a Docker image locally and
ghcr.io/super-linter/super-linter:latest
```
## Known Issues
- Rosetta for x86_64/amd64 emulation must be disabled on Apple Silicon
(ARM-based chips) for the online automated judge (boca-jail) to work (tested
on Apple M1, Docker Desktop 4.28.0, Engine: 25.0.3, Compose: v2.24.6-desktop.1,
Mar 2024);
## License
Copyright Universidade Federal do Espirito Santo (Ufes)
Expand Down
44 changes: 22 additions & 22 deletions boca/tools/boca-createjail
Original file line number Diff line number Diff line change
Expand Up @@ -118,28 +118,30 @@ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
/usr/sbin/update-locale
apt-get -y update
apt-get -y install software-properties-common
# add-apt-repository -y ppa:icpc-latam/unstable
# apt-get -y update
# apt-get -y upgrade
# apt-get -y install maratona-linguagens --no-install-recommends --allow-unauthenticated
# apt-get -y clean
add-apt-repository -y ppa:icpc-latam/unstable
apt-get -y update
apt-get -y upgrade
apt-get -y install maratona-linguagens --no-install-recommends --allow-unauthenticated
apt-get -y clean
# Workaround: install Java 11 instead of 17 (security issue)
# OpenJDK 17 installation with chroot does not work as expected
# Workaround: install OpenJDK 11 instead of 17 (security issue)
# ATTENTION: this method no longer works. Keep it here for reference.
# https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/2019908
apt-get -y install --no-install-recommends \
build-essential \
debconf \
openjdk-11-jdk \
gdb \
python3 \
python-is-python3 \
pyflakes3 \
pylint \
python3-distutils \
unzip \
wget \
valgrind \
&& rm -rf /var/lib/apt/lists/*
# apt-get -y install --no-install-recommends \
# build-essential \
# debconf \
# openjdk-11-jdk \
# gdb \
# python3 \
# python-is-python3 \
# pyflakes3 \
# pylint \
# python3-distutils \
# unzip \
# wget \
# valgrind \
# && rm -rf /var/lib/apt/lists/*
umount /proc
EOF
Expand All @@ -150,5 +152,3 @@ chmod 755 /home/bocajail/tmp/populate.sh

export LC_ALL=en_US.UTF-8
cd / ; chroot $homejail /tmp/populate.sh


Loading

0 comments on commit cf91e89

Please sign in to comment.