File tree Expand file tree Collapse file tree 5 files changed +122
-63
lines changed
Expand file tree Collapse file tree 5 files changed +122
-63
lines changed Original file line number Diff line number Diff line change 2222
2323 steps :
2424 - name : Checkout repository
25- uses : actions/checkout@v3
25+ uses : actions/checkout@v4
2626
2727 - name : Set up PHP ${{ matrix.php-version }}
2828 uses : shivammathur/setup-php@v2
Original file line number Diff line number Diff line change 1+ 3.3.0 -- Mon Mar 11 2024
2+ =====================================================
3+ - add an HTTP header: User-Agent
4+
153.2.2 -- Mon Feb 26 2024
26=====================================================
37- add setProxy method
3337 returned. file_get_contents is only used when the curl fetching doesn't
3438 work (rare)
3539
36-
37402.0.3 -- Sat Apr 27 2019
3841=====================================================
3942- API returns HTTP 401 for invalid key
Original file line number Diff line number Diff line change 1+ # Using docker
2+ #
3+ # ```bash
4+ # docker build -t local/opencage-php .
5+ #
6+ # docker run -ti -v `pwd`:/usr/src/myapp local/opencage-php
7+ #
8+ # app@ee88ad785ca2:/usr/src/myapp$ composer install
9+ # app@ee88ad785ca2:/usr/src/myapp$ ./vendor/bin/phpunit
10+ # app@ee88ad785ca2:/usr/src/myapp$ SKIP_CURL=1 ./vendor/bin/phpunit
11+ # app@ee88ad785ca2:/usr/src/myapp$ ./vendor/bin/phpcs .
12+ # app@ee88ad785ca2:/usr/src/myapp$ ./vendor/bin/phpstan analyse --level 5 src tests demo
13+ # ```
14+
15+ FROM ubuntu:22.04
16+
17+ ENV TZ=Europe/London
18+
19+ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
20+
21+ RUN apt-get update -qq && \
22+ apt-get install -y -qq curl vim php-cli php-curl php-xml php-mbstring unzip
23+
24+ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
25+
26+ RUN useradd --user-group --system --create-home --no-log-init app
27+
28+ COPY . /usr/src/myapp
29+ WORKDIR /usr/src/myapp
30+
31+ RUN chown -R app:app /usr/src/myapp
32+
33+ USER app
34+
35+ VOLUME [ "/usr/src/myapp" ]
36+
37+ CMD ["/bin/bash" ]
You can’t perform that action at this time.
0 commit comments