Skip to content

Instantly share code, notes, and snippets.

View kudaliar032's full-sized avatar
🇮🇩

Aditya Rahman kudaliar032

🇮🇩
View GitHub Profile
@kudaliar032
kudaliar032 / Dockerfile-PHP7.3
Last active July 3, 2019 08:44
Tambahkan environment untuk port yang digunakan mengakses webnya, export PORT_EXPOSE=8080
FROM php:7.3-apache
# update repos and install lib
RUN apt update -y && apt install -y libcurl4-gnutls-dev libicu-dev \
libmcrypt-dev libvpx-dev libjpeg-dev libpng-dev libxpm-dev zlib1g-dev libfreetype6-dev \
libxml2-dev libexpat1-dev libbz2-dev libgmp3-dev libldap2-dev \
unixodbc-dev libpq-dev libsqlite3-dev libaspell-dev \
libsnmp-dev libpcre3-dev libtidy-dev zip unzip gnupg libzip-dev
# install php extension
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Computer Vision</title>
</head>
<body>
@kudaliar032
kudaliar032 / 000-default.conf
Last active July 9, 2019 09:28
apache virtualhost configuration for laravel-docker
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/public
Alias /phpmyadmin /pma
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
<Directory /var/www/html/public>
AllowOverride All
@kudaliar032
kudaliar032 / config.inc.php
Last active July 11, 2019 06:06
phpMyAdmin configuration for laravel-project
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use setup/
*
* All directives are explained in documentation in the doc/ folder
* or at <https://docs.phpmyadmin.net/>.
*
* @package PhpMyAdmin
@kudaliar032
kudaliar032 / .gitignore
Created July 23, 2019 09:10
.gitignore aritkel ci/cd example
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
@kudaliar032
kudaliar032 / package.json
Created July 23, 2019 09:14
package.json artikel ci/cd example
{
"name": "appname",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1",
"serve": "^11.1.0"
},
@kudaliar032
kudaliar032 / .gitlab-ci.yml
Created July 23, 2019 09:28
.gitlab-ci.yml artikel ci/cd example
stages:
- test
- staging
test:
image: node:latest
stage: test
script:
- npm install
- npm run test
@kudaliar032
kudaliar032 / docker-compose.yml
Last active August 12, 2019 23:50
artikel medium, step 1
version: '3'
services:
reverse-proxy:
image: traefik
command: --api --docker
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
@kudaliar032
kudaliar032 / docker-compose.yml
Created August 12, 2019 23:49
artikel medium, step 2
...
wp-database:
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD=ayeaye
- MYSQL_DATABASE=wp_db
- MYSQL_USER=adit
- MYSQL_PASSWORD=adit123
@kudaliar032
kudaliar032 / docker-compose.yml
Created August 15, 2019 07:42
artikel medium, step 3
...
whoami:
image: containous/whoami