Skip to content

Commit

Permalink
Merge pull request #41 from shanrahul/php-7.4-ubuntu-20.04
Browse files Browse the repository at this point in the history
Updated the base image in the Dockerfile
  • Loading branch information
ChanakaR authored Sep 19, 2024
2 parents ee56f67 + a11b05f commit 7af929e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
php vendor/bin/codecept run unit
- name: Get installed php version
run: echo "VERSION_TAG_NAME=dev-php-$(docker exec dev_web_ubuntu-20.04 php -r 'echo PHP_VERSION;')-ubuntu-20.04" >> $GITHUB_ENV
run: echo "VERSION_TAG_NAME=dev-php-$(docker exec dev_web php -r 'echo PHP_VERSION;')-ubuntu-20.04" >> $GITHUB_ENV

- name: New image with a version tag & latest tag
run: |
Expand Down
8 changes: 4 additions & 4 deletions docker-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM orangehrm/orangehrm-environment-images:test-php-7.4-ubuntu-20.04
FROM orangehrm/orangehrm-environment-images:test-php-latest-ubuntu-20.04

MAINTAINER orangehrm
LABEL authors = "OrangeHRM TechOps<[email protected]>"
Expand All @@ -11,6 +11,7 @@ RUN apt-get update

RUN apt-get -y install \
nano \
supervisor \
memcached \
&& apt-get install --only-upgrade bash \
&& apt-get clean \
Expand All @@ -23,7 +24,6 @@ RUN echo "zend_extension=xdebug" >> /etc/php/7.4/cli/php.ini
# RUN echo "instantclient,/opt/oracle/instantclient_11_2" | pecl install oci8
# RUN echo "extension=oci8.so" >>/etc/php.ini


# Add infection
COPY infection.phar /usr/bin/infection
RUN chmod +x /usr/bin/infection
Expand All @@ -38,6 +38,6 @@ RUN pear channel-discover pear.phing.info && \
pear install phing/phing-2.16.0

# Add supervisor conf
COPY supervisord.conf /etc/supervisord.conf
#COPY supervisord.conf /etc/supervisord.conf

ENTRYPOINT ["/lib/systemd/systemd"]
ENTRYPOINT ["/sbin/init"]
20 changes: 10 additions & 10 deletions tests/unit/WebContainerCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,23 @@ public function checkSendMailVersion(UnitTester $I){
$I->seeInShellOutput("Version 8.15.2");
}

// public function checkNodemonInstallation(UnitTester $I){
// $I->wantTo("verify nodemon is installed in the container");
// $I->runShellCommand("docker exec dev_web nodemon");
// $I->seeInShellOutput('Usage: nodemon');
// }
public function checkOslonDBInstallation(UnitTester $I){
$I->wantTo("verify Oslon DB is installed in the container");
$I->runShellCommand("docker exec dev_web php -i | grep -i timezone");
$I->seeInShellOutput('Timezone Database Version => 2024');
}

public function checkBowerVersion(UnitTester $I){
$I->wantTo("verify bower is installed in the container");
$I->runShellCommand('docker exec dev_web bash -c \'export NVM_DIR="/usr/local/nvm"; [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"; bower -v\' ');
$I->seeInShellOutput('1');
}

// public function checkOci8PHPmodule(UnitTester $I){
// $I->wantTo("verify php module oci8 is installed in the container");
// $I->runShellCommand("docker exec dev_web php -m");
// $I->seeInShellOutput('oci8');
// }
public function checkwkhtmltopdfVersion(UnitTester $I){
$I->wantTo("verify wkhtmltopdf is installed in the container");
$I->runShellCommand('docker exec dev_web wkhtmltopdf --version');
$I->seeInShellOutput('wkhtmltopdf 0.12');
}

// public function checkInfectionFrameworkInstallation(UnitTester $I){
// $I->wantTo("verify infection framework is installed in the container");
Expand Down

0 comments on commit 7af929e

Please sign in to comment.