npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

miao_opengrok

v1.0.3

Published

管理docker版的opengrok项目

Downloads

7

Readme

miao_opengrok

写了一个小js来管理docker版的opengrok

1.目的

该项目仅仅是管理docker版的opengrok的,在docker版中,需要将本机的一个目录挂载到docker容器中的opengrok源码目录。在非docker版中,大部分人是直接将项目目录的软连接放到opengrok的源码目录中的,然而在docker版中,因为软连接指向的目录并未被挂载到docker中,所以会出现读取不到的问题,故而写了这么个小东西,可以自动遍历所有的项目软连接,找寻其真实目录将其挂载到docker中,用户只需要一个专门的存放软连接的目录即可。该软件会生成对应的docker-compose.yml文件,用户只需要在使用docker-compose的之后指定该配置文件即可。后续功能尚在持续研究中。

2.安装

首先,需要安装docker、docker-compose、docker版的oepngrok,笔者使用的是itszero/opengrok 这个镜像,故而默认配置是按照该镜像制作的,其他镜像的话需要有一定的小改动,不过问题不大。

npm install -g miao_opengrok

3.使用

基础的使用可以参考miao_opengrok -h 为了更良好的体验,需要设置系统变量OPENGROK_READ_DIR=你的放软连接的目录,在这个系统变量存在的情况下,每个命令的src_path参数就都可以省略,否则,就需要手动指定src目录

4.补充

可以使用-c参数选择一个json文件来作为配置文件,完整的json文件格式如下:

{
  "name":"xxx",//你的启动后的容器名
  "image":"xxx",//指定使用的docker镜像,默认是itszero/opengrok
  "ports":["8888:8080"],//指定暴露的端口绑定,另外,必须有一个端口和8080绑定,默认是8888:8080
  "runDir":"./",//指定放置软连接的目录的位置,但是建议使用系统变量的方式设定
  "outputFile":"docker-compose.yml"//默认输出的文件名
}