Skip to content

Commit c269f1a

Browse files
committed
feat: dockerfile to compile for php8.3
1 parent cb4a18a commit c269f1a

File tree

10 files changed

+19
-89
lines changed

10 files changed

+19
-89
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ php_blake2.lo
3131
run-tests.php
3232
*.lo
3333
.idea/
34-
configure.ac
34+
configure.ac
35+
/compiled/*.so

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
language: php
22
php:
3-
- '5.4'
4-
- '5.5'
5-
- '5.6'
6-
- '7.0'
7-
- '7.1'
8-
- '7.2'
3+
- '8.1'
4+
- '8.2'
5+
- '8.3'
96
env:
107
- NO_INTERACTION=1
118
before_script:

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ubuntu:24.04
2+
LABEL authors="cypherbits"
3+
ENV LC_ALL=C.UTF-8
4+
RUN apt-get update -y && apt-get dist-upgrade software-properties-common -y
5+
RUN add-apt-repository ppa:ondrej/php
6+
RUN apt-get update -y && apt-get install php8.3 php8.3-dev -y
7+
COPY . /making
8+
RUN cd /making && phpize && ./configure --enable-blake3 && make && make install
9+
CMD bash

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
docker build --tag "blake3build:latest" .
2+
docker create --name blake3build_container blake3build
3+
#/making/modules/blake3.so
4+
docker cp blake3build_container:/making/modules/blake3.so ./compiled/blake3.so
5+
docker rm blake3build_container

compiled/.gitkeep

Whitespace-only changes.

tests/b2sum.phpt

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/blake2_error.phpt

Lines changed: 0 additions & 21 deletions
This file was deleted.

tests/blake2_file.phpt

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/blake2_hash.phpt

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/sample.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)