Skip to content

Instantly share code, notes, and snippets.

View sullemanhossam's full-sized avatar

sullemanhossam

View GitHub Profile
# Use a specific version of the Python image
FROM python:3.9-slim
# Install Node.js, npm, and make
RUN apt-get update && \
apt-get install -y --no-install-recommends nodejs npm make && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Copy your application code to the container
const defaultTheme = require('tailwindcss/defaultTheme');
const plugin = require('tailwindcss/plugin');
module.exports = {
content: ["content/**/*.md", "layouts/**/*.html", "./tailwindcss.whitelist.txt"],
theme: {
extend: {
fontFamily: {
sans: [ 'Space Grotesk', ...defaultTheme.fontFamily.sans ],
mono: [ 'Space Mono', 'SF Mono', ...defaultTheme.fontFamily.mono ],
# Use the official Python base image
FROM python:3.8-slim
# Set environment variables
ENV HUGO_VERSION=0.111.2
# Install necessary dependencies
RUN apt-get update && \
apt-get install -y wget nodejs npm dpkg git make python3 rsync python3-pip python3-venv && \
apt-get clean && rm -rf /var/lib/apt/lists/*
services:
documentation:
container_name: pharmavillage.docs
build:
context: env/documentation
ports:
- "${DOCUMENTATION_EXPOSED_PORT:-8000}:8000"
volumes:
- ./documentation:/docs
working_dir: /docs
require "tilt/redcarpet"
class RedisTemplate < Tilt::Redcarpet2Template
SECTIONS = {
"description" => "Description",
"examples" => "Examples",
"return" => "Return value",
"history" => "History"
}
2024-06-28 20:36:22 /usr/src/app/lib/reference.rb:15: warning: key "cluster" is duplicated and overwritten on line 19
2024-06-28 20:36:22 [2024-06-28 19:36:22] INFO WEBrick 1.8.1
2024-06-28 20:36:22 [2024-06-28 19:36:22] INFO ruby 3.3.3 (2024-06-12) [aarch64-linux]
2024-06-28 20:36:22 [2024-06-28 19:36:22] INFO WEBrick::HTTPServer#start: pid=7 port=9292
2024-06-28 20:36:29 /usr/local/bundle/gems/tilt-2.4.0/lib/tilt/haml.rb:84: warning: Haml::Engine#precompiled_method_return_value at /usr/local/lib/ruby/3.3.0/forwardable.rb:159 forwarding to private method Haml::Compiler#precompiled_method_return_value
2024-06-28 20:36:29 192.168.65.1 - - [28/Jun/2024:19:36:29 +0000] "GET / HTTP/1.1" 404 44 0.0357
2024-06-28 20:36:29 /usr/local/bundle/gems/tilt-2.4.0/lib/tilt/haml.rb:84: warning: Haml::Engine#precompiled_method_return_value at /usr/local/lib/ruby/3.3.0/forwardable.rb:159 forwarding to private method Haml::Compiler#precompiled_method_return_value
2024-06-28 20:36:29 /usr/local/bundle/gems/tilt-2.4.0/l
# //ANCHOR - Redis
def new_redis_connection
Redis.new(password:"227777d4dd1fc61c6f884f",url: ENV["REDISCLOUD_URL"])
end
build:
context: .
dockerfile: Dockerfile
ports:
- "9292:9292"
depends_on:
- redis
redis:
image: redis:6.2-alpine
/* the contents of index.css */
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@layer components {
.card {
background-color: theme("colors.white");
border-radius: theme("borderRadius.lg");
padding: theme("spacing.6");
module.exports = {
remotes: {
css: {
port: 4000,
name: 'expose_css',
},
cssModule: {
port: 4001,
name: 'expose_css_modules',
},