Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
notdodo committed Nov 7, 2023
0 parents commit 1979081
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .env_example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NEO4J_URL="neo4j://localhost:7687"
PASSWORD=IAMmeIAMme!1!
NEO4J_AUTH="neo4j/${PASSWORD}"
NEO4J_server_memory_heap_initial__size=12G
NEO4J_server_memory_heap_max__size=16G
NEO4J_server_memory_pagecache_size=12G
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.code-workspace
!.vscode/*.json
*.json
.env
dist
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
BUILD_FLAGS=-ldflags="-s -w"
OUT_DIR=dist
OUT_PREFIX=iamme

start:
@if [ ! -f ./.env ]; then\
cp .env_example .env;\
fi
docker-compose up -d

build:
go build ${BUILD_FLAGS} -o ${OUT_PREFIX}

compile: build
GOOS=freebsd GOARCH=amd64 go build ${BUILD_FLAGS} -o ${OUT_DIR}/${OUT_PREFIX}-freebsd-amd64
GOOS=linux GOARCH=amd64 go build ${BUILD_FLAGS} -o ${OUT_DIR}/${OUT_PREFIX}-linux-amd64
GOOS=windows GOARCH=amd64 go build ${BUILD_FLAGS} -o ${OUT_DIR}/${OUT_PREFIX}-windows-amd64
GOOS=darwin GOARCH=amd64 go build ${BUILD_FLAGS} -o ${OUT_DIR}/${OUT_PREFIX}-darwin-amd64
GOOS=darwin GOARCH=arm64 go build ${BUILD_FLAGS} -o ${OUT_DIR}/${OUT_PREFIX}-darwin-arm64

clean:
@rm -rf ./${OUT_DIR}
@rm -f ./${OUT_PREFIX}
@docker-compose stop
@docker-compose down -v
@docker-compose rm -fv
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# IAMme IAMme

## ChatGPT definition

> "IAMme IAMme" seems to be an unusual and distinctive name. It appears to emphasize "IAM," which stands for Identity and Access Management, and could work as a creative and memorable name for a tool related to Okta or similar IAM systems.
24 changes: 24 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: "3"

services:
neo4j:
image: neo4j:latest
hostname: neo4j
container_name: neo4j
ports:
- "7474:7474"
- "7687:7687"
volumes:
- okta_Data:/data
environment:
NEO4J_PLUGINS: '["apoc"]'
NEO4J_AUTH: $NEO4J_AUTH
NEO4J_server_memory_heap_initial__size: ${NEO4J_server_memory_heap_initial__size}
NEO4J_server_memory_heap_max__size: ${NEO4J_server_memory_heap_max__size}
NEO4J_server_memory_pagecache_size: ${NEO4J_server_memory_pagecache_size}
NEO4J_server_jvm_additional: "-XX:+ExitOnOutOfMemoryError"
NEO4J_initial_dbms_default__database: "okta"
NEO4J_dbms_cypher_forbid__shortestpath__common__nodes: "false"

volumes:
okta_Data:
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module IAMme-IAMme

go 1.20
Binary file added iamme
Binary file not shown.
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
"fmt"
)

func main() {
fmt.Println("IAMme IAMme")
}

0 comments on commit 1979081

Please sign in to comment.