GithubHelp home page GithubHelp logo

daocloud / dao-2048 Goto Github PK

View Code? Open in Web Editor NEW
205.0 46.0 2.3K 504 KB

2048 is a number puzzle game.

Home Page: http://daocloud.github.io/dao-2048/

License: MIT License

HTML 4.62% JavaScript 26.78% CSS 24.77% Dockerfile 1.05% SCSS 13.78% Makefile 5.23% Ruby 0.34% Smarty 2.04% Shell 21.38%
kubernetes 2048 2048-game

dao-2048's Introduction

2048

Artifact Hub

2048 is a number puzzle game. When the squares of the same number are merged together, they will add up. Each round will have an extra square with 2 or 4 written on it, and the game ends when the square cannot be moved. Players have to find a way to make up a square with 2048 (or larger) in this small 16 squares.

Quick Start

Run as docker container

open shell and input:

export VERSION=v1.4.1
docker run -d -p 8080:80 ghcr.io/daocloud/dao-2048:$VERSION

open browser and view http://:8080 .

Run in kubernetes

export VERSION=v1.4.1
helm repo add dao-2048 http://daocloud.github.io/dao-2048/
helm install dao-2048 dao-2048/dao-2048 --version $VERSION 

Advanced Usage

Use LoadBalancer Service

helm upgrade --install dao-2048 dao-2048/dao-2048 --version $VERSION --set service.type=LoadBalancer

Use Dual Stack Service

helm upgrade --install dao-2048 dao-2048/dao-2048 --version $VERSION --set service.ipFamilyPolicy=PreferDualStack

Use Static Image

helm upgrade --install dao-2048 dao-2048/dao-2048 --version $VERSION --set image.repository=daocloud/dao-2048-static

Thanks

This image is derived from the Docker Hub image alexwhen/docker-2048, thanks to the developer alexwhen enthusiastic support. And thanks to gabrielecirulli's 2048 project

dao-2048's People

Contributors

allencloud avatar chirag-goel16 avatar dependabot[bot] avatar golfenguo avatar haleygo avatar learner0810 avatar nekomeowww avatar pikeszfish avatar sakeven avatar vizv avatar yankay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dao-2048's Issues

failed to visit port 80 via ipv6

bash-5.1# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN qlen 1000
    link/ipip 0.0.0.0 brd 0.0.0.0
3: eth0@if6: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP
    link/ether d6:f0:8a:58:cd:34 brd ff:ff:ff:ff:ff:ff
    inet 172.17.8.190/21 brd 172.17.15.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fd00:1033::172:17:8:158/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::d4f0:8aff:fe58:cd34/64 scope link
       valid_lft forever preferred_lft forever
4: veth0@if185050: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP
    link/ether 66:30:c3:c5:55:7d brd ff:ff:ff:ff:ff:ff
    inet6 fe80::6430:c3ff:fec5:557d/64 scope link
       valid_lft forever preferred_lft forever
5: net1@if6: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP
    link/ether e6:db:9a:c2:34:66 brd ff:ff:ff:ff:ff:ff
    inet 172.81.0.195/16 brd 172.81.255.255 scope global net1
       valid_lft forever preferred_lft forever
    inet6 fd00:81::172:81:0:144/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::e4db:9aff:fec2:3466/64 scope link
       valid_lft forever preferred_lft forever
bash-5.1# curl [fd00:81::172:81:0:144]
curl: (7) Failed to connect to fd00:81::172:81:0:144 port 80 after 0 ms: Connection refused

ipv4 works.

yaml:

spec:
  progressDeadlineSeconds: 600
  replicas: 2
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app.kubernetes.io/instance: dao2048-macvlan-overlay
      app.kubernetes.io/name: dao2048-macvlan-overlay
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      annotations:
        ipam.spidernet.io/ippool: |-
          {
              "interface": "net1",
              "ipv4pools": [
                "172-81-0-1"
              ],
              "ipv6pools": [
                "172-81-0-1-v6"
              ]
          }
        k8s.v1.cni.cncf.io/networks: kube-system/macvlan-vlan0
      creationTimestamp: null
      labels:
        app.kubernetes.io/instance: dao2048-macvlan-overlay
        app.kubernetes.io/name: dao2048-macvlan-overlay
    spec:
      containers:
      - env:
        - name: NODE_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: spec.nodeName
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        image: ghcr.io/daocloud/dao-2048:v1.1.0-beta.4
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: http
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        name: dao-macvlan-overlay
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: http
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources: {}
        securityContext:
          capabilities:
            add:
            - NET_ADMIN
            - SYS_TIME
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30

修改github 流程

打 tag 自动推镜像,不打tag 不推镜像

relase dev 的一个文档。

tag 缺 V

[kubeaduit] AutomountServiceAccountTokenTrueAndDefaultSA

-- [error] AutomountServiceAccountTokenTrueAndDefaultSA
   Message: Default service account with token mounted. automountServiceAccountToken should be set to 'false' on either the ServiceAccount or on the PodSpec or a non-default service account should be used.


---------------- Results for ---------------

  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: sdf
    namespace: default

--------------------------------------------

Source Control Management (SCM) Files Accessible (HTTP)

Summary

The script attempts to identify files of a SCM accessible at the webserver.

Detection Result

The following SCM files/folders were identified:

Match: 0000000000000000000000000000000000000000 3c339934223032805780a4992f15e74b41ecc0e9 runner <runner@fv-az564-461.rdklwxoyddcefobsmsmtkszgre.dx.internal.cloudapp.net> 1677754632 +0000 checkout: moving from master to refs/tags/v1.4.1
URL: http://10.6.205.205:8084/.git/logs/HEAD
Match: [core]
[remote "origin"]
URL: http://10.6.205.205:8084/.git/config
Match: # git ls-files --others --exclude-from=.git/info/exclude
URL: http://10.6.205.205:8084/.git/info/exclude
Match: Unnamed repository; edit this file 'description' to name the repository.
URL: http://10.6.205.205:8084/.git/description

Insight

Currently the script is checking for files of the following SCM:

  • Git (.git)

  • Mercurial (.hg)

  • Bazaar (.bzr)

  • CVS (CVS/Root, CVS/Entries)

  • Subversion (.svn)

Detection Method

Check the response if SCM files are accessible.

Details: Source Control Management (SCM) Files Accessible (HTTP) OID: 1.3.6.1.4.1.25623.1.0.111084
Version used: 2022-09-13T10:15:09Z
Summary The script attempts to identify files of a SCM accessible at the webserver. Detection Result The following SCM files/folders were identified:

Match: 0000000000000000000000000000000000000000 3c33993 runner runner@fv-az564-461.rdklwxoyddcefobsmsmtkszgre.dx.internal.cloudapp.net 1677754632 +0000 checkout: moving from master to refs/tags/v1.4.1
URL: http://10.6.205.205:8084/.git/logs/HEAD
Match: [core]
[remote "origin"]
URL: http://10.6.205.205:8084/.git/config
Match: # git ls-files --others --exclude-from=.git/info/exclude
URL: http://10.6.205.205:8084/.git/info/exclude
Match: Unnamed repository; edit this file 'description' to name the repository.
URL: http://10.6.205.205:8084/.git/description
Insight
Currently the script is checking for files of the following SCM:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.